cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
798
Views
0
Helpful
4
Replies

UPDATE_CALL_DATA on ECE email or chat dialog

martinbielik
Level 1
Level 1

Hi,

is there a way how to set value for CallVariable on ECE chat or email dialog?

In the event about new chat or email, there is list of available actions for this dialog, where I see also UPDATE_CALL_DATA:

         <mediaType>ECE_Chat</mediaType>

         <participants>

            <Participant>

               <actions>

                  <action>UPDATE_CALL_DATA</action>

                  <action>WRAP_UP</action>

                  <action>CLOSE</action>

                  <action>PAUSE</action>

                  <action>TRANSFER</action>

               </actions>

               <mediaAddress>1080</mediaAddress>

               <startTime>2018-04-17T10:22:06.518Z</startTime>

               <state>ACTIVE</state>

               <stateChangeTime>2018-04-17T10:23:14.913Z</stateChangeTime>

            </Participant>

         </participants>

         <state>ACTIVE</state>

         <uri>/finesse/api/Dialog/152412_25467640_1</uri>

But when I send PUT request to that dialog with:

<Dialog>

   <requestedAction>UPDATE_CALL_DATA</requestedAction>

   <mediaProperties>

      <callvariables>

         <CallVariable>

            <name>callVariable1</name>

            <value>Some value</value>

         </CallVariable>

      </callvariables>

   </mediaProperties>

</Dialog>

I get back error message:

<ApiErrors>

    <ApiError>

        <ErrorType>Invalid Input</ErrorType>

        <ErrorData>requestedAction</ErrorData>

        <ErrorMessage>Invalid 'requestedAction' specified for task</ErrorMessage>

    </ApiError>

</ApiErrors>

The same thing works for voice dialogs perfectly, but does not seem to work for non voice dialogs. All other actions like PAUSE, CLOSE etc. seem to be working also for non voice dialogs. So the problem is only with UPDATE_CALL_DATA.

Is it by design or am I doing something wrong?

Thanks

Martin

1 Accepted Solution

Accepted Solutions

dekwan
Cisco Employee
Cisco Employee

Hi Martin,

Looks like it is a bug. The bug is the fact that UPDATE_CALL_DATA shows up as an allowable action and it should not. It is by design that tasks are not able to update the call variables.

Thanx,

Denise

View solution in original post

4 Replies 4

dekwan
Cisco Employee
Cisco Employee

Hi Martin,

Interesting. According to the documentation for non-voice dialogs, I do not see the UPDATE_CALL_DATA being listed: https://developer.cisco.com/docs/finesse/#dialog-apis-for-nonvoice-tasks/dialog-apis-for-nonvoice-tasks

Since the error says that it is an invalid action even though it is listed as an allowable action, I suspect that it is a bug. I will check with the Finesse team.

Thanx,

Denise

dekwan
Cisco Employee
Cisco Employee

Hi Martin,

Looks like it is a bug. The bug is the fact that UPDATE_CALL_DATA shows up as an allowable action and it should not. It is by design that tasks are not able to update the call variables.

Thanx,

Denise

Hi Denise,

thanks for investigation and clarification.

So probably there is no other way how to write some data to tasks, right?

Thanks,

Martin

Hi Martin,

That is correct. There isn't a way to write data for tasks.

Thanx,

Denise