Hello,
I'm strugling to find a way to run, in a flow or workflow, two different data actions.
In the first time I'm contacting a web resource to have an access_token.
This access_token need to be set up in the HEADER of the second call and it have to be "dynamic" based on the first data action response.
Do you know how to do?
Thanks
davide
Hi Davide,
This sounds like a good use case for the oauth credential type. Where you will have a custom auth action to get the access_token, and then use that in your other data actions:
--Jason
This is a question better posed on the Genesys Cloud Main Community Site, not here in the developer site. You will need to place both of the data actions in the flow. From the first, you will grab the token and then pass that into the second. You will have to design your second data action to acccept the Token and place in the URL or into the package sent to the web service.
Hello,
thanks for your feedback. The first data action already works fine in fact I got my access_token (output contract):
The problem is how to pass this access_token in the header of the second data actions:
I have read the doc..but I is still not clear how to pass that value from the first to the second data action
Thanks
Davide
That access. Token variable needs to be an Input Contract field so you can substitute it into the data action when you run it in the flow.
Ciao Robert,
yes, but the access_token isn't in the API contract as parameter, so I got an issue.
I haven't to appear in the body of the request, but in the header.
Davide
Usually the Web Service will require this in the URL, as a Header, or in the body. Would need to know about the web service you are calling. Typically, your integration will take care of all of this for you.
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.