Skip to main content

Looking for some help.  I am having trouble with a process (PB) that fires when a campaign member record is being added - I am trying to pull 4 fields from either the lead or the contact object on to the campaign member object.  I look to see if the Lead ID is not Null and if so, pull the fields from the Lead record and Stop the process.  Subsequently, I look to see if the Contact ID is not null and if so, pull the fields from the Contact object to the campaign member and stop the process.  The process errors off with the attached error when adding a contact to a campaign.  Funny thing is if I reorder the criteria check and look at the Contact ID first and move the fields then look at the Lead ID second, the moving of the fields from the lead errors off.  

 

Scenario 1: Upon Campaign Member Creation

Check for Lead ID not null (should indicate adding a lead as the campaign member) - move fields - Stop

Check for Contact ID not null (should indicate adding a contact as the campaign member) - move fields - Stop

Works when adding a Lead, but errors off when adding a Contact

 

Scenario 2: Upon Campaign Member Creation

Check for Contact ID not null - move fields - Stop

Check for Lead Id not null - move fields - Stop

Works when adding a contact, but not when adding a Lead

 

Anyone out there know what might be going on with this?  The error happens if I use the Add to Campaign button from the lead or contact record and also happens when adding members to a campaign using the Manage Members option.   The second check for the null ID throws the error.

1 commentaire
  1. 10 févr. 2017, 00:23

    A little more detail - message when check for Lead ID was second (Scenario 2):

    "An error occurred at element myDecision2 (FlowDecision).

    The flow failed to access the value for myVariable_current.

    Lead.Id because it hasn't been set or assigned."
0/9000