UpdateWithChatData

This method is used to update a field in the Chat Data map with the value in the (third-party chat) Chat Data field. The following table shows the input arguments for UpdateWithChatData.

UpdateWithChatData Method: Input Arguments

Input Argument Description

InteractionId (Optional)

The value in this argument is the interaction ID that you want to update if IsSingleChat is set to True. The value in this argument is ignored if IsSingleChat is set to False.

For new and transferred chats, IsSingleChat is always set to True.

IsSingleChat (Optional)

If set to True, then it indicates to update the value provided for InteractionId. False indicates to update the value for all chats. For new and transferred chats, IsSingleChat is always set to True.

UpdateField

The field that you want to update in the Chat Data map.

Value Field

The business component field that you want to get the value from.

The following table shows the output arguments for UpdateWithChatData.

Input Argument Description

HasSetForAll (Optional)

Indicates whether or not to set (or update) the value for all chats. If set to True, then all chats get the update value.

Example

If you want to update ChatDisplayName in the Chat Data map with the (third-party chat) firstname field for all chats, then the input is as follows:

InteractionId = 
IsSingleChat = FALSE
UpdateField = ChatDisplayName  // the field of ChatDisplayName in Chat Data map
ValueField = firstname         // the field of firstname in Chat Data map 
                                       (third--party chat data)