The CreatorCon Call for Content is officially open! Get started here.

Flow Designer - REST Step | how to pass a token from script step to the REST Step.

Meloper
Kilo Sage

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?

Meloper_0-1751878787244.png

 

6 REPLIES 6

@Meloper 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi its was helpful 🙂 and i marked it already as this