Embeddable Framework - Retrieving 'disposition' value (wrap-up code)

Hi,
Using the Embeddable Framework, the wrap-up assigned to the interaction is captured and sent to the web app in the key-value pair "disposition":"wrap-up code value".

We get this key-value pair when subscribing to the interaction or in the processCallLog method.
However, despite I always get the disposition value when a change occurs in the interaction (including when a wrap-up code is applied) I don't have the Call Log Id which is used to update the Activity in the CRM.

On the other hand, the disposition value is included in the processCallLog message along with the Call Log Id but only if there was a change in the call log.
I wonder how it would be a reliable way to capture the wrap-up code assigned to the interaction in order to update the associated CRM activity.

Thanks.

Thank you for the explanation. I see that the processCallLog method may not get called after the wrap-up code is assigned to the interaction.

One option you could explore is, after obtaining a new call log ID, you could store and keep track of the call log ID and the interaction ID together locally since the processCallLog method receives a call log object as the first parameter and an interaction object as the second parameter. Then, after receiving an interaction event with a newly assigned wrap-up code, you could look up the call log ID for the interaction and use it to update the associated CRM activity.

Junji

1 Like

Thank you Junji.

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