Skip to main content
Full Circle Insights

GetContactsWithResponses

This method is overloaded, and has two signatures:

Map<Id, Contact> GetContactsWithResponses(
    Set<Id> accountIds, 
    Set<Id> contactIds, 
    Set<Id> campaignMembersToExclude, 
    Set<String> campaignTypesToExclude, 
    DateTime earliest, Set<String> additionalContactFieldsToQuery, 
    Set<String> additionalCMFieldsToQuery, 
    String contactExcludeField, 
    String campaignExcludeField,
    Boolean requireResponseDate (release 1.13CI/1.21RM & later)

Map<Id, Contact> GetContactsWithResponses(
    Set<Id> accountIds, 
    Set<Id> contactIds, 
    Set<Id> campaignMembersToExclude, 
    Set<String> campaignTypesToExclude, 
    DateTime earliest, Set<String> additionalContactFieldsToQuery, 
    Set<String> additionalCMFieldsToQuery, 
    String contactExcludeField, 
    String campaignExcludeField,
    Boolean requireResponseDate (release 1.13CI/1.21RM & later)
    Boolean restrictFirstTouchByDate (Campaign Attribution) or Set<ID> firstTouchCampaigns (Response Management)​
    Boolean ResponseDateAppliesToNonResponses (Campaign Attribution 2.3 & later)

 

Parameters

  • accountIds - Set of Account IDs
  • contactIds - Set of Contact IDs
  • campaignMembersToExclude - Set of CampaignMember IDs to exclude from the return value.
  • campaignTypesToExclude - Set of Campaign Types. CampaignMembers with a Campaign having one of these types will be excluded.
  • additionalContactFieldsToQuery - Set of Contact field names that will be included in the Contacts in the return value
  • additionalCMFieldsToQuery - Set of CampaignMember field names that will be included in the CampaignMembers in the return value
  • contactExcludeField - Name of a Contact Boolean field. Contacts having this field equal to true will be excluded.
  • campaignExcludeField - Name of a Campaign Boolean field. CampaignMembers associated to Campaigns having this field equal to true will be excluded.
  • RequireResponseDate - Set to true to only see responses where FCR_Response_Date__c (Response Management) or FCI_Response_Date__c (Campaign Attribution) or configured alternate response date is valid. (available with release 1.13CI/1.21RM)
  • restrictFirstTouchByDate - True to restrict first touch responses by the earliest date setting, false to consider all responses on the accounts for first touch (Campaign Attribution only, available with release 1.13CI/1.21RM)
  • firstTouchCampaigns - Set of campaign IDs of responses to consider for first touch (Response Management only, available with release 1.13CI/1.21RM)
  • ResponseDateAppliesToNonResponses - True if CampaignMembers should be queried even if HasResponded is false as long as the response date or alternate response date is specified (Campaign Attribution 2.3 and later only)

Returns

Map of contacts related to specified accounts or have a specified Id. Can reference CampaignMembers that aren't filtered from their associated to Contact.

  • Was this article helpful?