- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2022 06:50 AM
Hello,
I have a need to run two REST API call. One for getting the Token and second one using that token for getting the Data.
While creating Action record from Data source, I am not able to see adding (+ sign ) in Flow Designer to add second REST API call.
One option I am seeing as creating Input variable via script and store the token in variable prior to making second REST call, but not sure how to.
Can you please help how can I achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 08:30 AM
Thanks for the image updates.
Create a new flow action with your rest step that retrieves the token. The token value will be an output from the action. Save/Publish the action, then copy the code snippet for that action:
You can then use that code snippet in the script step of the Data Source Request:
--> To help others, please mark this as Correct or Helpful if this response has been of any use. <--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2022 08:42 AM
Your images are not displaying for me, however, what you are describing sounds correct> first API call to get token > pass token to second api call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2022 09:57 AM
Hi Jwalton,
Sorry, I have uploaded the images now. Please take a look.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 08:30 AM
Thanks for the image updates.
Create a new flow action with your rest step that retrieves the token. The token value will be an output from the action. Save/Publish the action, then copy the code snippet for that action:
You can then use that code snippet in the script step of the Data Source Request:
--> To help others, please mark this as Correct or Helpful if this response has been of any use. <--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2022 05:42 PM
Thanks Jwalton.