I was just wondering is there anyway to populate personlisation strings in landing pages?
I know that I can set variables and access these via @[variable_name], however I have a landing page, that reuses a block from an email that displays different content based on a personalisation string.
Is there anyway to populate these in a lnding page so I don't get an error? Alternatively does anyone have some code I could add to the block to allow me to switch between personalisation strings and variables?
Attribution to: Chris Merriman
Possible Suggestion/Solution #1
Yes. You can populate them if you use the MicrositeURL() function in your email to reference your landing page. That will encode and pass all of personalization strings in the URL. Once on the page, you can reference them like you would in an email -- %%varname%%
for personalization strings, %%=v(@varname2)=%%
for variables you create in the page. In order for the links to wrap in your test email, you have to actually send it, not just use Send Preview.
Attribution to: Adam Spriggs
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/30186