4 Replies Latest reply on May 17, 2018 6:17 AM by Mieke Bruins

    Triggers based on SFDC opportunities

    Mieke Bruins

      Hi Marketo Community,


      We have a renewal reminder program we would like to improve on:


      A SFDC opportunity is created for each renewal opportunity.

      The Opportunity Name relates to the contract number.

      The Opportunity close date relates to the expiry of the existing contract.

      We would like to better automate our renewal reminder process sending out emails 30days out, 60days out etc.

      One contact might manage multiple contracts, therefore there could be multiple opportunities where this person is the primary contact for the opportunity.


      1. How would I trigger the correct reminder email to be sent out based on the opportunity close date, i.e 30days before opportunity close date, trigger to send contact 30day reminder email
      2. Is it possible to, based on the opportunity that is triggering the send, populate the email with the correlating opportunity name (i.e contract number) so that the contact is aware of which contract we are reminding them about


      Thanks in advance for any advice,


        • Re: Triggers based on SFDC opportunities
          Ron Yeager

          Hi Mieke,

          In a previous role I ran a similar program to this and we used Email Scripting within tokens to populate email copy with data from the Opportunity object. We built a batch job in SFDC that flagged the opportunity at 90, 60, 30, and 0 days, and had corresponding smart campaigns in Marketo listening for that flag to change, which would then fire off the email to the primary contact on the opportunity. I wish I had some screenshots from this project to help, but it is a pretty straightforward project.



          • Re: Triggers based on SFDC opportunities
            Grégoire Michel

            Hi Mieke,


            By definition, you cannot set a trigger campaign on a date field since it does not change and there is no event you could trigger from. 2 ways to handle this:

            1. You can run a daily batch, as suggested by Ron above. This is the solution I would personally look for
            2. You can create a "Nb days to renewal" field in SFDC account and have an APEX batch process that updates this field daily. The field will sync with Marketo and creates Change Data Value activities in Marketo, that you will be able to use as triggers.


            With regards to the email content, a Velocity script token will do the job. Pay attention to a couple of risks, though:

            • You are depending on the opportunity contact role to be correctly filed out in SFDC. Unfortunately, you cannot leverage account opportunities.
            • If a contact is linked to more than 10 opportunities, the Velocity script will not be able to process all of them (it is limited to 10 related records).



            1 of 1 people found this helpful