SOLVED

Re: Token for leadid

Go to solution
Anonymous
Not applicable
Is there any Marketo token to get the id of the lead? . There is a token for email address {{lead.Email Address:default=edit me}}. But i cannot find the token for the id. 
1 ACCEPTED SOLUTION
Grégoire_Miche2
Level 10

Yes it works perfectly well, although it does not appear on the token drop list.

But it can only work if Marketo recognizes you with the munchkin and you are in the database.

See here : inficiences display the page, wait 20 seconds (so that the lead is created in the database) and refresh it. The lead ID will display.

For anonymous leads, it will stop working with Feb 2016 release. See here Removal of "Is Anonymous" filters.

-Greg

View solution in original post

11 REPLIES 11
Grégoire_Miche2
Level 10

Yes it works perfectly well, although it does not appear on the token drop list.

But it can only work if Marketo recognizes you with the munchkin and you are in the database.

See here : inficiences display the page, wait 20 seconds (so that the lead is created in the database) and refresh it. The lead ID will display.

For anonymous leads, it will stop working with Feb 2016 release. See here Removal of "Is Anonymous" filters.

-Greg

Frank_Breen2
Level 10

Are you getting the ID using the API and then pushing it to the Lead record in your CRM?

{{lead.ID}} looks like a custom field in your CRM and not an out of the box one from Marketo.

Grégoire_Miche2
Level 10

No, It's standard, just it does not appear in the drop list.

Just try.

-Greg

SanfordWhiteman
Level 10 - Community Moderator

Absolutely, I use it all the time.

Greg's is the correct answer.

Grégoire_Miche2
Level 10

Hi Arunkumar,

{{lead.ID}}

-Greg

Anonymous
Not applicable

Thanks for the quick reply. But i could not find it in the token list. If i write it manually, it returns empty value. Do we need to enable it somewhere?

Anonymous
Not applicable

Actually i want to add the token in marketo landing page for leadid.

Frank_Breen2
Level 10

Do you mean this:

id.png

Anonymous
Not applicable

Yes, exactly

Frank_Breen2
Level 10

This is just Marketo's unique identifier for every record, it's not possible to call it out via a token in email or landing pages.

Frank_Breen2
Level 10

I don't think you can search by Lead ID, this is a Marketo only primary key.