Use in your model's (Opportunity/Account)DetermineAttribution implementation to reference a CampaignMember's response date.
DateTime ResponseComparisonDate(CampaignMember cm)
Parameters
- cm - A CampaignMember
Returns
If the response date has a value, returns that value
If the FirstRespondedDate is on the same day as the createddate, returns the createddate, otherwise 0 GMT of the responded date
If HasResponded is false and there is no response date, returns null
DateTime ResponseComparisonDate(CampaignMember cm, Boolean RequireResponseDateField, Boolean ResponseDateAppliesToNonResponses)
Note - Only available in Full Circle Campaign Attribution (standalone) version 2.3 and later
Parameters
- cm - A CampaignMember
- RequireResponseDateField - A Boolean indicating if the response date field or alternate response date field must be populated for this to be considered a response. Default value is false.
- ResponseDateAppliesToNonResponse - A Boolean indicating if a CampaignMember with a value in the response date field or alternate response date field should be considered a response even if HasResponded is false. Default value is false
Returns
If it is not a response (HasResponded is false unless ResponseDateAppliesToNonResponses is true and a date is provided), returns null
If the alternate response date field has a value (custom field with API name fci_alternate_response_date__c), returns that date
If the response date field (FCI_Response_Date__c) has a value, returns that date
If the FirstRespondedDate is on the same day as the createddate, returns the createddate, otherwise 0 GMT of the responded date
Comments
0 comments
Please sign in to leave a comment.