Engagement Class

Stores the object name and ID of an engagement record. An engagement record represents an engagement interaction, a messaging session, or a voice call between a customer and an agent.

DataRetrieval

  • Engagement Constructors

    Use the Engagement constructor to initialize the Engagement class that associates an engagement record ID with the API name of the engagement object.

See Also

Use the Engagement constructor to initialize the Engagement class that associates an engagement record ID with the API name of the engagement object.

The Engagement class includes these constructors.

  • Engagement(recordId, objectApiName)

    Creates an instance of the DataRetrieval.Engagement class to associate an engagement record ID with the API name of the engagement object.

  • Engagement()

    Creates an instance of the DataRetrieval.Engagement class.

Creates an instance of the DataRetrieval.Engagement class to associate an engagement record ID with the API name of the engagement object.

public Engagement(String recordId, String objectApiName)

recordId

Type: String

ID of the engagement record that’s associated with the interaction between a customer and an agent.

objectApiName

Type: String

API name of the engagement object that’s associated with the interaction between a customer and an agent.

Creates an instance of the DataRetrieval.Engagement class.

public Engagement()