Flow Designer - REST Step | how to pass a token from script step to the REST Step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2025 02:00 AM
Hi, due to different requirements on the body I need to query the token in a script step before the rest step.
The token I get is currently still in the log.
Now I have problems to pass the token to the rest step.
The token uses a connection alias and in my opinion expects the token in the oauth_credential table.
For example, if I request the token manually via the UI action ‘get Oauth Token’. The token is stored in the oauth_credential table and the REST step then accesses this token.
How do I do this in a script step for the REST step?
How do I transfer the token?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hi its was helpful 🙂 and i marked it already as this