Trigger Data Action from Scripter when Interaction.State is connected

Hi,
I have been reading several topics but I can't get this to work.

What I try to achieve is the following:
I populate several variables within Scripter from Architect. So I send ConversationId, ANI, DNIS, Skill used,.. and that all works fine.
Now the customer also wants the time spent in the Queue. So I made a Data Action getting tAcd from a conversation. But of course that value is only available when the conversation stands (status=connected)

So I made a Custom Action checking the Scripter.Interaction State so that if the state gets Connected (not sure if this is language dependent) I trigger the Data Action and get the value.

But... nothing happens.
I made a button in the Script that does the same and if I press the button when the conversation has state connected I get my value.

It is just like the check of the state isn't working correctly.

Am I missing something here?
BR,
Rob

I moved this to the scripts room, as this doesn't appear to be an issue with Data Actions per se.

I wonder if the conversation is in something like an alerting state when scripter pops, instead of connected. Can you do something to display the Interaction State on your script?

Anyone hopefully a scripting expert can jump in for additional help.

--Jason

Hi Jason, thanks

I have it kind of working now, but it isn't steady.
Sometimes it shows the tAcd value and other times it doesn't. I think it is a timing issue because the tAcd is only available if the Scripter.Interaction State = Connected (or Verbonden in Dutch) (by the way is it possible to use OR here to cover multiple languages?)

Below an example of a call that doesn't show the Queue Time.
I answered the call but no Queue Time was set:

Then in the bottom of my screen (I use FireFox for this test) I see this message (and only when the action fails):

When I then click my Test Data Action button the value is populated:

Is there any way to get this steady? Or someway to get the actual Queue Time calculated in here so I can use it.

BR,

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