addAssociation
Adds a new contact or relation association to interaction logs.
Parameters
Name | Data type | Description | Notes |
data object
Parameters
Name | Data type | Description | Notes |
Interaction Log view
The contact value populates the Name menu in the Interaction Log view of the embedded agent interface. The relation value populates the Related To menu.
Example
In this example, the integration adds a new contact association with the ID 1234 and the displayed name John Smith to an interaction.
Copied
window.PureCloud.addAssociation ({
type: "contact",
id: "1234",
text: "John Smith"
});