Skip to main content
I want my end users to be able to click on a button on contact page that will add that contact to our email list. All the button needs to do is add the contact to the campaign (id = 701j0000001uYU0) with a status of sent. Thanks!
7 respostas
  1. 15 de mar. de 2016, 18:04

    Alright! This is how your Flow would be = 

    1. Variables to Create
      • Label: conId
        • Input/Output Type: Input and Output
        • Type: Text
      • Label: campId
        • Input/Output Type: Input and Output
        • Type: Text
    2. Drag in a Record Create
      • Object: CampaignMember
      • Field to Set:

        • ContactId <= conId
        • CampaignId <= campId
        • Note: I guess you might have to specify the Status field too(like Send / Responded etc)
    3. Save the Flow

    Now, create a custom

    Detail Page Button

    for Contact - 

    1. Setup | Customize | Contacts | Buttons, Links and Actions
    2. New Button or Link
    3. Display Type: Detail Page Button
    4. Behaviour: Open link in new window
    5. Content Source: URL
    6. URL: 

      /flow/NAME_OF_THE_FLOW?conId={!Contact.Id}&campId=701j0000001uYU0

    7. Add it to the Page Layout and you're done!