I know I'm late to the party, but I had the same question. In case this helps anyone else, here's what I did.
I solved this by creating a Number field in Salesforce for Marketo Lead ID. Then, that gets synced with Marketo and I can have a Smart Campaign copy {{lead.id}} into that field when leads are first seen from Salesforce.
I tried to see if I could use Field Management to map the lead ID or even a Marketo custom formula that referenced {{lead.id}}, to my Salesforce field, but it didn't seem like you could map things that way as far as I could tell.
@Jon Wu
Could you please elaborate on this part:
"I can have a Smart Campaign copy {{lead.id}} into that field when leads are first seen from Salesforce"
Is that a flow step?
I'm confused how you write the Marketo ID into the new SFDC field.
thank you-
Yes, a Change Data Value flow step with the token in the new value box.
Hi Michael - I created a Program in my Operational folder, in this program I have one recurring SmartCampaign that looks for "Email Address Is Not Empty" in the SmartList. From there, I have a Flow for Change Data Value, that get the Attribute (the field for the Marketo Lead ID I created in Salesforce *Important, must have the same name in contacts and leads if you want to use the same for both, so marketoid__c for instance). And the Change Data Value Attribute for this field is {{lead.id}}. This runs 2x per day.
Thank you Victor & Sandford-
I have a pretty basic question since I haven't been on the creating token side too much.
Is the Token Name = eg MarketoID what is the Value {{lead.id}}
Also is this a Text type token?
I think I'm lost when it comes to pulling in the lead id part and the setup of the token.
Thank you in advanced.