All in the title. Thanks in advance!
You will need a custom field to store the code for each lead This custom field will be usable as a token in the email.
The easiest way to upload the codes: Export your leads, run the assignment in Excel using a random function and vlookup, reimport in Marketo
I think this is how I will go about doing this. But I'm just curious, would there be any way to accomplish this without creating a custom field?
AFAIK, velocity scripts cannot call any outside web service, so no, there is no other way.
I have previously used the same method Grégoire Michel describes above.
Short of funds for an outside service partner, this will work!
Here are other threads for examples
This video shows a working example of how we did it in Marketo.
Hope this helps..