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

    Navigator | Tier 3
    September 14, 2022

    Hi Tamil Arasu,

     

    I can see the below options in AA but not sure whether it will work or not.

    What is your A360 version?

    imageimageimage

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

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

     

    Please check the link, here explained the same case

    _Tamil_
    Navigator | Tier 3
    September 14, 2022

    Hi Tamil Arasu,

     

    Which version you are working on? Also once i connected with Ews server after that i need to send email to other business accounts(send action)also will work as expected

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

    Automation 360 v.25 release.

     

    You can also reach out to the Automation Anywhere Support team to fix this issue.

    _Tamil_
    Navigator | Tier 3
    September 16, 2022

    Hi Tamil Arasu,

    I followed the same link which you gave.

     

    Tried to replace basic auth with modern auth(OAuth) in below code..looks like OAuth it is not getting authenticated after passing all the details like username ,pwd,tenant id and client id getting this below page. Refer screenshot1

     

    Screenshot1:

     

    image 

     

    image 

     

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

    This issue usually happens when you use different accounts to sign in Office portal in the same browser. This is because the browser caches your account credential in one session.

     

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

    please enter username and pwd manually to authenticate for 1st time.

    _Tamil_
    Navigator | Tier 3
    September 16, 2022

    @Tamil Arasu​ 

     

    So you want me to remove cache in my machine and try. Will that work?

     

    Also noticed when i click authorize it is navigating to first screenshot1 so every time do i need to enter username and pwd manually to authenticate.

     

    Or what will happen next if we receive screenshot1.can you tell me the procedure

     

    Navigator | Tier 3
    September 20, 2022

    Hi Tamil Arasu/All

    Anyone is using A360.18 or below A360.25 version in Automation Anywhere.

    If yes, could you please let me know how you are using OAuth in Email action command.

     

    I have reached out to support team and they are saying to upgrade it to A360.25 which is not possible for us to upgrade immediately(it take some time) . We need some alternative solution.

    Navigator | Tier 3
    September 28, 2022

    Hi Tamil Arasu,

     

    i am able to authorize using Email connect Action. But every time we need to select the account as like attached screenshot manually??

     

    imagealso later i used send action but bot is not sending an email to my email id.

     

    image 

    Could you please let me know how you are sending email with OAuth in A360.