Hi, I am struggling with Script List variables population.
For Inbound and Outbound (Dialer), in the flows, I do a table lookup to post a specific columns data to a dropdown list in the Script UI.
This works great as in the flow, I populate the list as a semi colon delimited list. I then do a 'Set Screen Pop, where I pass that to the script and that works great.
This comes up with the below - so working fine.
However the issue I have is when an agent then makes a manual outbound call and assigned a queue to it - the script will pop for the manual call to the agent, but due to the call not running through a flow, the list does not get populated.
I have tried to manually assign the variable in the script with a custom action as follows:
But the problem is it will just list it as: - 1,2,3,4,5 and not in a list below each other
And not as a list below each other.
This is the same, even if I use Interpolated Text / Text Expression.
I have also called a data action when the form loads -
The data action will then set the Script Variable on the correct participant.
/api/v2/conversations/calls/${input.conversationId}/participants/${input.participantId}/attributes
The Request Body then sets the variables.
{
"attributes": {
"lstInteractionClassList":"100,200,300",
"lstInteractionClassListDisplay":"111,222,333"
}
}
I have tried the Script Variable to be Output / Input and both and none (All possible options), not one works to populate the variable. (I get it to populate - but sit with the same issue where the value is just like above where the list sits on the same line and not listed as options below each other)
So the Question is how can I populate that list from a manual outbound call?
I seem to have run out of ideas.
Thank you!