Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleSTOP

 Well, let's just say, this is rather disappointing. Drawloop can NOT send emails out from the Campaign Member object, using Salesforce email. This is because the Campaign Member object is not a full Salesforce object (see Campaign Member), and it doesn't have Activities. Workarounds are:

  • Use another object - this is what I did - I had an enrollment object related to Campaign Member, so I could still relate back to Campaign and Contact from my enrollment object, which gave me the fields I needed.
  • Use SMPT Email - if you have access to SMPT (ask your IT department), you can send via that.

The following guide will use the Enrollment object that is linked to the Campaign

Prerequisite

  • Have your basic word document created.
  • Have your images created and your images set up in Salesforce like this in Salesforce - basically add a URL field to the Object you want the image to be on, and include in that field the URL to the publicly available image hosted in Salesforce documents. (Note, you do not have to do the convoluted method as described in the help document here http://support.drawloop.com/lds/document-help/word/images).
  • Have your SMPT setup if you are going to use thatEmail Template created

Create the DDP - wizard

  • DDP Tab > New
  • Enter the details
    • Name - Certificate of Completion
    • Type - know that you can add more types by modifying the field, or choose Other and enter an Other value. 
    • Output filename - <<Campaign_Workshop_Name>> Certificate of Completion - <<Contact_DisplayName>>
      • Note Display Name in Contact is a custom field that joins the Salutation, First Name and Last Name, using the LocalName fields if they are filled in, otherwise the standard names. I always like doing a formula for scenarios like this, because you can then use it everywhere, and it's consistent, and you can change it only in one place. 
    • Object Name - Enrollment
    • Contact Selection Required.
    • Include Attachments - none
    • Set the security level (eg some documents may only be able to be created by specific users). 
  • Next - add a delivery option
    • Salesforce Email
    • Document Storage - None.
      • Yes, you want to store the document, but I like to use Chatter rather than attachments.  
    • Document Output Type - PDF
  • Next - Relationships
    • Related By - Enrollment
    • Relationship - Contact
    • Related By - Lookup
    • All the rest as standard. 
    • We need a relationship to Campaign also, but we will leave it for now and do it after the wizard is created
  • Next - Edit
    • Type - Chatter Post
      • Subject - Certificate of Completion attached
      • Include DDP Output in Post
    • Type - Field Update
      • Enrollment
      • Certificate Sent Date
      • <<Today>>
        • This helps us when we send the document off automatically. 
  • Next - Tag Documents
    • This is where you go through your Word document, and put in the correct fields. 
    • Be sure that Word/Powerpoint is chosen 
    • You can skip this screen for now, and come back to it later. 
  • Next - Upload Documents
    • I like to skip this step for now, and go into the advanced settings. 
    • So just choose any file for now. 
    • Click Save. 

Advanced Setup

  • Contact Selection Options - ISPICKVAL(Status,"Complete")Filter - Complete
    • This is a field on the Enrollment where we are only sending this document if the Status is Complete - we set this up on the Loop button. 
  • Limit Deployment - Web
  • Delivery Options - Email
    • Uncheck Wait for document to process
  • Relationships
    • Add a Relationship to Campaign
  • Document
    • Add the document to be sent by this DDP. 

Now the DDP is all set up to send the document via PDF. 

Don't set the italicised fields until after you have tested the DDP. 

Finalise Document

...

...

Don't set the italicised settings until after you have tested the DDP. 

...

...

The button generator does not add the image parameters onto the button URL, so you will have to add those manually.  

Add the button to the page layout

...

  • Note: use the exact API Name with SF in front of it - eg SFMyObject__c
  • Not sure about images yet. 

Workflow

Ensure the workflow is only run if the Certificate Sent Date is blank AND the Status is Complete AND the workflow is set to "Evaluate the rule when a record is created, and any time it’s edited to subsequently meet criteria". Therefore the certificate will only be sent once, because when we send the Document we get Drawloop to update the Date Sent