8 Replies Latest reply on May 23, 2017 2:14 PM by Sanford Whiteman

    Webhook to Populate Marketo fields

    Nate Oosterhouse

      Hi all,

       

      We are looking to populate a set of fields in marketo all at once and use a webhook to do so.  Below is an example of what we are trying to accomplish:

       

      Country = Country Middle Man

      State = State Middle Man

      City = City Middle Man

      Postal Code = Postal Code Middle Man

      Address = Address Middle Man

       

      I am struggling on figuring out how to set it up.  (I am new to webhooks).

       

      Thanks!

        • Re: Webhook to Populate Marketo fields
          Sanford Whiteman

          Are there any conditions or transformations involved? Just setting a field to the value of another field can be done natively in a flow, so can you explain the relationship between the in/out data more?

            • Re: Webhook to Populate Marketo fields
              Nate Oosterhouse

              Hi Sanford,

               

              No conditions or transformations I believe.  Just simply setting a field to the value of another field but I need to have it occur all at once.  We are going to be using these "middle man" fields in our web forms moving forward.  Basically what we are trying to do is if someone has no address information upon a form fill out (I have a smart list to identify these people), then populate the standard geographic fields with that same data but it needs to happen all at once and before it gets synced to salesforce. 

               

              I originally had in the flow

               

              1. Change Data Value

              IF member of smart list HAS NO ADDRESS INFORMATION then populate Country with {{lead.Country Middle Man}}

              2. Change Data Value

              IF member of smart list HAS NO ADDRESS INFORMATION then populate State with {{lead.State Middle Man}}

              etc

               

              but flow step 1 will remove it from the HAS NO ADDRESS INFORMATION smart list and therefore will skip flow step 2 above so I thought a webhook would be a good solution.

               

              Thoughts?

                • Re: Webhook to Populate Marketo fields
                  Nate Oosterhouse

                  I suppose I could create a custom Boolean field called Has No Address Information and then do something like the below as my flow instead of a webhook:

                  Fills out form trigger

                  Flow:

                  1. Change Data Value
                    1. IF member of smart list Has No Address Information THEN populate Has No Address Information field with true
                  2. Change Data Value
                    1. IF Has No Address Information = true then populate Country with {{lead.Country Middle Man}}
                  3. Change Data Value
                    1. IF Has No Address Information = true then populate State with {{lead.State Middle Man}}
                  4. Change Data Value
                    1. IF Has No Address Information = true then populate City with {{lead.City Middle Man}}
                  5. Change Data Value
                    1. IF Has No Address Information = true then populate Postal Code with {{lead.Postal Code Middle Man}}
                  6. Change Data Value
                    1. IF Has No Address Information = true then populate Address with {{lead.Address Middle Man}}
                  7. Change Data Value
                    1. Has No Address Information = false

                   

                  Any negative thoughts on that?