Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RESTAPI response into variable in ODI

User_Y6T3PMay 20 2021 — edited May 20 2021

Trying to create a package which should have such flow with two api calls

1. package calls restapi which returns json response with a key of "accessToken"
2. package then saves this accessToken into a variable
3. package calls another restapi which returns other data, but this restapi need to include the "accessToken" in the header.
Did follow this tutorial to know how RESTAPI works and connects with ODI
https://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_12c/odi_12.2.1.1/Integrating_RESTful_Services/ODI_12_2_1_REST.html#section1
With the tutorial above for sure I can save this response into a file then manually copy the token and run the second restapi manually, but want to make it more dynamic.
Is there a way to make this flow dynamically?

Comments