web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Connector Development
Suggested answer

Custom connector test succeeds, but 401 error occurs when running the flow

(1) ShareShare
ReportReport
Posted on by 2

I am currently creating a Power Automate flow to register data into the Salesforce Contact object.

■ Flow structure:

  1. Manually trigger the flow

  2. Send an HTTP request to retrieve user information

  3. Parse the JSON responseUse a custom connector to register data in Salesforce (POST)

■ Issue:

  • The custom connector alone works fine and successfully creates records in Salesforce.

  • However, when running the Power Automate flow, the custom connector part fails with a 401 error.

■ Error message:

{
  "message": "Session expired or invalid",
  "errorCode": "INVALID_SESSION_ID"
}
If anyone knows the cause, please kindly let me know.

Thank you in advance.
Categories:
I have the same question (0)
  • stampcoin Profile Picture
    4,082 Super User 2025 Season 2 on at
    Custom connector test succeeds, but 401 error occurs when running the flow
    @CU11030755-0 Hi again,
    Do you use the same account for Send http request  and custom connector ?
    Add another link:
     
     
  • Suggested answer
    stampcoin Profile Picture
    4,082 Super User 2025 Season 2 on at
    Custom connector test succeeds, but 401 error occurs when running the flow
    The token is expired, you have get a new one for the header.
    in the header when you invoke http, provide :
     
    Authorization: Bearer access_token
     
     
    below is just an example.
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics