If I have two web service data actions in a row, I am wondering if it's possible to use the output from the first webservices data action as a variable in the second webservices data action. For example I call the first data action api with an ID from the IVR and receive a name as an output. Then use the name and call another api in the same flow/task consecutively one after the other.
If I set the participant data straight after the first data action I can see the name available, and I am having some trouble using the name as a variable.
In addition, is there best practises for calling multiple api's in a flow? For example, are they OK being called one after the other, should they be broken down in to separate tasks, or transfer flows or other?
In terms of the web service calls, there should not be any issue calling multiple web service data dips in a row / in the same flow. There are some complications around when participant data is updated:
Your best bet may be to use local flow variables to wire up your multiple web service calls and then set participant data once you have all of the data put together. I moved this to the Architect room in case they have any feedback about variable handling in your situation.
Executing multiple data actions is fine. Using the Set Participant action is unnecessary unless you plan to use the data in another flow, for example after transferring to a 2nd flow or in an in-queue flow after transferring to ACD. Otherwise just use the output variable from the 1st data action. In your 2nd Call Data action input field, make sure you are using expression mode instead of literal mode.