We are looking at ways to use Marketo to do a random selection of codes or keys based on a program. Has anyone ever done this?
Say you want to have an event discount code that is stored somewhere and are given out randomly when someone fills out a form.
The flow would look like this:
User fills out form -> Marketo program grabs random key or code from populated list -> key emailed to user
Yes, this has been discussed a few times before. Check:
As you'll see, the requirement are always the same: you need a service to maintain the "stack" of codes so it knows which one to generate/give out next. The codes might be precreated in bulk or created on-the-fly, but either way the key is to maintain the last distributed index so you can keep popping new, unique ones off the stack and giving them to leads.