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

Extracting parameters from URL

Hi, 

I have created a default request step to save a file to box. Everything is working as expected but I am unable to pass a  parameter for the file name. Can someone point me in the right direction? I have tried using triggerOutputs()['queries'] 

But I receive error: Expected 'key-body-output', 'key-headers-output', 'key-outputs-output', 'key-name-output', 'key-properties-output' or 'key-statuscode-output', actual 'key-queries-output'

 

7 REPLIES 7
melim
Power Automate
Power Automate

Hi,

 

Did you try "Path Parameters" in the dynamic schema from the "Request" trigger? 

 

RequestPathParameters.png

 

nbarsley
Frequent Visitor

Hi, 

Thanks for your response. I did try adding relative path parameters and received this message:

InvalidTemplate: Unable to process template language expressions in action 'Compose' inputs at line '1' and column '1453': 'The template language expresion 'triggerOutputs()['relativePathParameters']' cannot be evaluated because the property 'relativePathParameters' doesnt exist, available properties are 'headers, body'.

 

 

 

Are you trying to get query parameters from the Request trigger url? Or is there a previous step from which you're expecting them?

nbarsley
Frequent Visitor

The request trigger URL. Thanks!

I am trying to do the exact same thing. Did you come to a resolution? I ended up getting stuck.

phil4mat
Frequent Visitor

eopara
Advocate III
Advocate III

Just as @phil4mat  has said, this should help: 

 

Here is the expression: @triggerOutputs()['queries']['queryParamName']

 

queryParamName is the name of the name-value pair of your query

 

Hope it helps.

get query parameters in power automate.PNG

 

This article could throw more light. LogicApp–HttpRequest trigger: retrieving query parameters 

 

Please mark as answer if this answers your question.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (89,499)