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

Issues with HTTP Request Parameters

OK, so i have been using the Microsoft Graph API here to setup notifications from outlook. This requires my endpoint to receive an initial validation response and send the validation token back. it sends this validation all tucked into the url like this:

 

 

Content-Type: text/plain; charset=utf-8
POST https://{notificationUrl}?validationToken={opaqueTokenCreatedByMicrosoftGraph}

 

 

 

So i set my flow to receive this like this:
FlowSetup.png

 This has worked once. But now all i get for the validation token is "{validationToken}" instead of the actual value like in this log:
FlowLog.png

 As far as i can tell i have not changed the trigger at all, but is there something i'm missing with this? 

1 ACCEPTED SOLUTION

Accepted Solutions
Oyster
Frequent Visitor

Ok, i figured this one out on my own. I figured out what was going on by building the flow in Azure Logic flows, since i could peak at the code. Basically, the {validationToken} in the above screenshots is reflecting this value:

triggerOutputs()['relativePath']['validationToken']

 

I needed to change it to this on the response step:

triggerOutputs()['queries']['validationToken']

 

I'm not sure how i missed that, but flow does not help at all, since it can only suggest the wrong parameter, and this one has to be entered manually.

View solution in original post

1 REPLY 1
Oyster
Frequent Visitor

Ok, i figured this one out on my own. I figured out what was going on by building the flow in Azure Logic flows, since i could peak at the code. Basically, the {validationToken} in the above screenshots is reflecting this value:

triggerOutputs()['relativePath']['validationToken']

 

I needed to change it to this on the response step:

triggerOutputs()['queries']['validationToken']

 

I'm not sure how i missed that, but flow does not help at all, since it can only suggest the wrong parameter, and this one has to be entered manually.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,961)