Skip to main content

Hi folks! I was hoping to get some advice on a flow I'm building.  

 

I have a group of campaigns indicating participation in different initiatives. When those contacts are added to one of those campaigns, I now need that to trigger an update on the contact's record to append to a multiselect. The name of the Campaign matches the value in the multiselect. 

 

This is what I have so far:

  1. Record Trigger: When a campaign member is created AND the Parent Campaign = Initiative Participants
  2. Get Records: Where the Contact ID equals {!$Record.Contact.Id}
  3. Update Records: Related to the campaign member, selected triggering campaign member contact ID. 
    1. Set the field Values to Field: Initiative (this is the multiselect) -< Value: Formula resource
    2. Formula resource: "Get_Related_Contact_s_Existing_Picklist.Initiative__c" & ";" & "$Record.Campaign.Name"

When I attempted to add a new campaign to a contact to test, I got an error: "We can't save this record because the “Initiative Field” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST: Initiative: bad value for restricted picklist field: Get_Related_Contact_s_Existing_Picklist.Initiative__c. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1353995691-131230 (-38227967)" 

 

Any thoughts? I know the multiselect is going to be a problem, but I am loath to otherwise add a bunch of checkboxes to the record. Thank you!

답변 4개
  1. 4월 16일 오후 8:20
    @Bethany Shenise

    Ahhh yes, I feared that might happen. Ok here’s the way I’ve had to modify this in the past:

    In an Assignment Flow

    1) create a text variable (in the example pic, v_Comm_Exclue_Text) and assign the current multi-select picklist values to that variable.

    2) using the same variable, ADD your new value, starting with a semi-colon: “;Phone Calls” in the example.

    3) I then have the record’s multi-select picklist field = my text variable. But in your case you can just use the variable in the Update Record element.

    I’ve attached an image, I hope that helps!

0/9000