Skip to main content
Navigator | Tier 3
September 8, 2022
Question

Hi All, Need some help on replacing basic authentication with OAuth standard (modern authentication) to connect to EWS (Exchange Web Services) in A360

  • September 8, 2022
  • 29 replies
  • 646 views

In code, We are using one outlook account (ex: ssc-ppp-ttdd@companyname.com) to send emails for stakeholders after completion of bot execution at the end(Summary report).This basic auth will deprecate from OCt1. Our current codes will get affected. Now we need to replace with modern auth. Could you please let me know the steps /ways to achieve in A360.Looking for the inputs.

 

Additional Info: We have client id and Tenant ID..Not sure whether any other details required to use in A360.Looking for the steps to implement in code

    29 replies

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    September 9, 2022

    Hi @Hemalatha Barla​ ,

     

    Below details are required to connect the server using OAuth

     

     

    • EWS Client ID and Tenant ID: Enter the unique client and tenant IDs generated when you registered the application in the Microsoft Azure portal.
    • Username: Enter the username that you want to use to access the mail server.

    For example, john.smith@myCompanyName.com

    Choose the username as Credential or String.

    Password: Enter the password for the username you provided.

    Choose the password as Credential or String

     

     

    How to connect EWS mail server with Automation Anywhere ...

     

    _Tamil_
    Navigator | Tier 3
    September 10, 2022

    Hi Tamil Arasu,

    Thanks for the response.

     

    I have couple of questions. It would be great if you can help me here whether my understanding is correct or not.. As this is first time i am doing it.

     

    I have username and Password of the mail box, Client ID, Tenant ID (got from Azure portal) and i will pass in code.. Will it generate any token after providing these details in AAcode? If yes, how the output will be look like. To test these do we need to create any API or O365 team will provide any API?

     

    I have seen this link but not sure on Request URI where to give in the code. Is it really necessary to provide request URI

    Also could you please let me know in Oauth do we need to provide username and password in code.. Sorry if this is a dumb question but wanted to clarify before implementing.

     

    Do you have any sample code and response to replace basic auth with modern auth to connect EWS. if yes, please provide that.

     

    I have read in one article this OAuth will support only in A360.25?i s it true?

     

    Looking for your inputs

     

     

     

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    September 13, 2022

    I have read in one article this OAuth will support only in A360.25?i s it true?

     

    Can you please share that link here?

    _Tamil_
    Navigator | Tier 3
    September 13, 2022

    Hi Tamil Arasu,

     

    Can you share some sample code how we can achieve using Client ID,tenant ID. to replace basic auth with modern auth to connect EWS.

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    September 13, 2022

    How to connect EWS mail server with Automation Anywhere ...

     

    Please check out the above link, the same way you have to connect to the server.

    _Tamil_
    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    September 13, 2022

    To authoritze connection, enter credential or insecure string for client ID and tenant ID (variables are not supported). The connection will open in default browser tab. After successful connection you can close the browser tab and return here. EWS permission is required only once for an Azure client registration.

     

     

     

    _Tamil_
    Navigator | Tier 3
    September 13, 2022

    Hi Can anyone help me on my above queries. Looking for the help.

    Navigator | Tier 3
    September 13, 2022

    In this link it is saying Request URI. Could you plesae let me know hw will get that URI and use in code

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    September 13, 2022

    Are you able to see the below options in your AA Email Package-->Connect Actionimage

    _Tamil_