rocco52 | 2019-12-05 13:37:46 UTC | #1
Hello everyone
I am trying to consume a web service from a data action. But the service requires that I send a token as a parameter within the Header. The issue is that the token changes every 10 minutes.
How can I get to add a parameter to the header, with known information from the IVR flow?
For example, I have a variable called "token" in the input contract. Can I send the information contained in this variable by the request header?
Thank you!
Jason_Mathison | 2019-12-05 13:58:34 UTC | #2
Data Actions support setting headers dynamically. The header values are processed as velocity templates, so you can use $(input.token) as part (or all) of a header value. In the simple configuration UI you can create a new header, and then click on an "Available Inputs" link on the right side to insert your input into the header.
--Jason
rocco52 | 2019-12-05 16:05:18 UTC | #3
Thank you Jason_Mathison for your help!
system | 2020-01-05 16:05:19 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 6642