flow designer - action - REST POST, in the url passing a catalog item variable

levino
Giga Guru

Hi There

i have a catalog item, i need to pass the requested_for variable in the url

 

${userId}

please advise how do i go about it, using flow designer

Resource Path
/api/v1/users/${userId}/lifecycle/reactivate

 

Thanks

Levino

2 REPLIES 2

Manoj89
Giga Sage

Hi Levino,

 

This may help you --> https://www.servicenow.com/community/developer-articles/access-ritm-variables-using-flow-designer/ta....

 

Create an "Action" concat the strings as URL there and use the output of the it in the flow.

Vijay Balotia1
Tera Guru

Hi @levino,

 

Your can  try this solution if it works for you.

Create an input parameter to get UserID, and then in your rest method unlock the base URL and from data picker use the input parameter in your URL.

 

VijayBalotia1_0-1695474088801.pngVijayBalotia1_1-1695474132363.png

 

 Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks
Vijay Balotia