My task is to run the Power Automate workflow from UiPath in order to check if the user has an “Out of Office” reply message set in MS Outlook. To achieve this, I am trying to use the HTTP Request activity in UiPath. When trying to run the workflow, I get an error:
The authentication credentials are not valid.
Not sure why it happens. I am using Simple Authentication in HTTP Request activity properties. Maybe OAuth1 or OAuth2 are the correct way of authentication? If yes, where can I get them from?
if you have set “Anyone” then you dont need credentials/token, you can directly hit your PA flow from UiPath using http request by passing endpoint url of PA flow. Its the simplest but totally unrestricted form of hitting PA flow using UiPath. For this, you can also refer video shared in above post. But if you want to secure access to your PA flow, then you will need to follow either of below 2 options.
3)if you have set “Any user in my tenant” then you need to do registration on azure and provide it proper api permissions. Once done, you need to provide below under parameters in your http request.
if you have set “specific users in my tenant” then also you need to do registration on azure and provide it proper api permissions. Once done, you need to provide above parameters in your http request with an additional setting in your PA flow like below:
Thank you @sonaliaggarwal47 & @Anil_G for your valuable input. I managed to successfully create the Power Automate and UiPath workflows. I allowed everyone in the organization to use the flow:
Sharing it for future reference, maybe somebody would use it: