Skip to main content
Full Circle Insights

GetLeadsWithResponses

This method is overloaded, and has two signatures:

List<Lead> getLeadsWithResponses(
    Set<Id> accountIds, 
    Set<String> campaignTypesToExclude, 
    DateTime earliest, String leadLookupField, 
    Set<String> additionalLeadFieldsToQuery, 
    Set<String> additionalCMFieldsToQuery, 
    String campaignExcludeField,
    Boolean RequireResponseDate)

List<Lead> getLeadsWithResponses(
    Set<Id> accountIds, 
    Set<String> campaignTypesToExclude, 
    DateTime earliest, String leadLookupField, 
    Set<String> additionalLeadFieldsToQuery, 
    Set<String> additionalCMFieldsToQuery, 
    String campaignExcludeField,
    Boolean RequireResponseDate,
    Boolean restrictFirstTouchByDate (Campaign Attribution) or Set<ID> firstTouchCampaigns (Response Management)

Parameters

  • accountIds - Set of Account IDs
  • campaignTypesToExclude - Set of Campaign Types. CampaignMembers with a Campaign having one of these types will be excluded.
  • leadLookupField - Name of Account lookup field on Leads
  • additionalLeadFieldsToQuery - Set of Lead field names that will be included in the Lead in the return value
  • additionalCMFieldsToQuery - Set of CampaignMember field names that will be included in the CampaignMembers in the return value
  • 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
  • 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)

Returns

List of responses associated to leads that are related to Accounts by the Account lookup field on the Lead specified by leadLookupField.

  • Was this article helpful?