Forum Stats

  • 3,752,188 Users
  • 2,250,468 Discussions


RESTAPI response into variable in ODI

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

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?