cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

HTTP Authentication Failure Even With Token

I'm essentially trying to build a flow that automates HTTP requests to Marketing Cloud. I was able to build an HTTP request to get a token from Marketing Cloud and then subsequently parse the incoming payload. I'm able to isolate the token as dynamic content. However, when I make the next HTTP request (with said token in the header) I get an Unauthorized error. I don't know how that's possible when I'm calling out the token in the header. I also tried putting the token in the Raw and Custom Value Authorization drop-down types within the HTTP request, still no dice.

 

Thanks!

Snag_10fce56.png

Snag_1126fcc.png

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Hi @cm13 

 

Thanks for your reply. Have you got a space after the Bearer? If not add a space between the Bearer and Dynamic mapping.



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

5 REPLIES 5
Super User III
Super User III

Hi @cm13 

 

Could you test the same token with Postman?

 

https://www.postman.com/downloads/

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials
Frequent Visitor

I've been using the requests in Postman for months now, so I know that they work in Postman. For some reason, I can get the token in the flow, but the next request fails

Super User III
Super User III

Hi @cm13 

 

Thanks for your reply. Have you got a space after the Bearer? If not add a space between the Bearer and Dynamic mapping.



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

View solution in original post

Frequent Visitor

Yep, that fixed it! Thanks so much!

Advocate I
Advocate I

hello,

 

could you please describe the code which is in your Get test Token HTTP action and the json you are using just after ?

 

I am facing the same issue with a token which is expiring after 1h, and believe that your approach would fix my problem.

 

Thanks

Bertrand

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (53,443)