Architect Data Action output in script Page

Hi,
I have an architect flow which makes Webservice call via data action and then routes the flow to ACD. Can I make script page to open from Architect flow and make the output data of the above Webservice call available in the script to display data to the agent on screen?
Is this possible or do I need to make same API call again from script page?

Thanks in advance.

Hi Pratik,

Thanks for your question. If I'm understanding your question correctly, the answer is yes. What you want to do is:

  1. In your script create a variable and make sure it is set as an Input. For my example here we'll create a CustomerName input string variable in the script:

37%20AM

  1. Then in the script's properties make sure to turn on the Inbound feature.

07%20AM

  1. Save and Publish the script.

  2. Launch Architect and open the flow where you have the Call Data Action.

  3. After the Call Data Action, add a Set Screen Pop action.

  4. Select the script from #1 and notice that there should be an Input for the variable you marked as an input.

  5. Assuming that one of the outputs from the Call Data Action was bound to a Task.Customer variable in a flow, you could set the input up simply by assigning the Task.CustomerName to the CustomerName input for the script.

Obviously since that input is an expression, you can do more there than just pass in the variable value. For example, if the Task.Customer string was NOT_SET or blank string and in that case we wanted the input value to be "<unknown>", that input expression could look like this:

If(IsNotSetOrEmpty(Task.MyOutputStr), "<unknown>", Task.MyOutputStr)

Then when the flow Transfers to ACD, that screen pop will be configured with the data.

Hope this helps!

Jim

1 Like

Thanks, Ullyot_Jim. This is Exactly what I was looking for.
I really appreciate your detailed explanation :+1:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.