Power Automate trigger from UiPath issue: The authentication credentials are not valid

Hello team,

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?

Screenshots below for your reference:


@dbukk

First thing its related to power automate so it would be better to ask in respective community

Also before triggering a power automate from UiPath..i would suggest try it from a postman and then try to copy curl and import into UiPath

A starter help is here

Cheers

1 Like

Hi @dbukk

For this, follow below steps:

  1. you need to check your PA flow for what setting you have enabled in your flow. It can be any of the below 3 values:

  2. 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.

  1. 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:

Hope this helps.

Regards
Sonali

1 Like

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:


2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.