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.
-
Use the
Engagementconstructor to initialize theEngagementclass that associates an engagement record ID with the API name of the engagement object.
See Also
- https://help.salesforce.com/s/articleView?id=ind.engagement.htm&type=5
- https://help.salesforce.com/s/articleView?id=ind.engagement_get_engagements_invocable_action_considerations.htm&type=5
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.Engagementclass to associate an engagement record ID with the API name of the engagement object. -
Creates an instance of the
DataRetrieval.Engagementclass.
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()