Forum Stats

  • 3,752,188 Users
  • 2,250,468 Discussions
  • 7,867,747 Comments

Discussions

RESTAPI response into variable in ODI

User_Y6T3P
User_Y6T3P Member Posts: 4 Green Ribbon
edited May 20, 2021 8:39PM in Data Integrator

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?

Tagged:

Answers