Pass value to Salesforce via query string part of Marketo URL | Community
Skip to main content
May 31, 2017
Solved

Pass value to Salesforce via query string part of Marketo URL

  • May 31, 2017
  • 1 reply
  • 3224 views

Hi!

Our instance of Marketo is synced to Salesforce.

Is it possible to pass a value to Salesforce via a query string that's appended to a Marketo URL?

How we'd wanna utilize something like this is to have a unique "Lead Source" utilizing the same landing page.

Right now, we're copying landing pages to pass a unique "Lead Source" as a hidden field.

Thank you!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

When you set a hidden field to Autofill from query parameter, it... fills the field value from a query parameter, I don't know another way to say it.

If the URL contains

     &first_name=Emily

and the hidden field

     FirstName

is set to Autofill from the query parameter

     first_name

then when someone visits the page with the above query string, the lead's FirstName is set to "Emily."

1 reply

SanfordWhiteman
Level 10
May 31, 2017

"...to Salesforce" is kind of off-topic.

If you're synced to SFDC you just need the value in Marketo.

To do this, set your hidden field to Autofill from a query parameter. This is easy to find in Form Editor.

June 2, 2017

Hi Sanford!

Thank you for your help.

Sorry, I don't think I'm articulating my question properly.

We'd like to pass the values for the hidden fields on the Marketo form FROM a query string in the Marketo URL so that if there's a hidden field for FIRST_NAME, the field will be populated from the value of the FIRST_NAME that's in the query string of the Marketo URL.

We are synced to Salesforce.

We're trying to reduce our workload but creating multiple forms to pass unique hidden values but passing the hidden values in a query string instead.

Do you know if that's possible?

If so, how?

Thank you Sanford!

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
June 2, 2017

When you set a hidden field to Autofill from query parameter, it... fills the field value from a query parameter, I don't know another way to say it.

If the URL contains

     &first_name=Emily

and the hidden field

     FirstName

is set to Autofill from the query parameter

     first_name

then when someone visits the page with the above query string, the lead's FirstName is set to "Emily."