SOLVED

Adding Salesforce IDs as Tokens to a URL

Go to solution
Highlighted
Level 1

Adding Salesforce IDs as Tokens to a URL

I am trying to add Salesforce IDs as tokens to a URL link in a CTA button, has anyone tried to do this or knows how to do so? The URL leads to a Qualtrics survey.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 10 - Community Moderator

Re: Adding Salesforce IDs as Tokens to a URL

Like any token. I believe this one is {{lead.SFDC Id}}. You do not need to encode it as it's URL-safe already.

View solution in original post

4 REPLIES 4
Highlighted
Level 10 - Community Moderator

Re: Adding Salesforce IDs as Tokens to a URL

Like any token. I believe this one is {{lead.SFDC Id}}. You do not need to encode it as it's URL-safe already.

View solution in original post

Highlighted
Level 1

Re: Adding Salesforce IDs as Tokens to a URL

Thank you. My main question though is adding the token to an inserted link. Where would it exactly be placed? The URL is a survey and opens with a customized URL for each user that joins, I want to add the token to this so it would be unique to the Lead's unique ID.

Highlighted
Level 10 - Community Moderator

Re: Adding Salesforce IDs as Tokens to a URL

I assume the destination site expects it to be a specific query param, like

  https://www.example.com?id={{Lead.SFDC Id}}

Guess I don't understand why you'd be using this token if you didn't know where to put it...

Highlighted
Level 10 - Community Moderator

Re: Adding Salesforce IDs as Tokens to a URL

P.S. The SFDC Id isn't the only unique identifier in Marketo (and of course it doesn't apply at all to leads that aren't synced to/from SFDC).  Every lead has a Marketo Lead ID, Marketo Unique Code, and Marketo Unique Name.