1

I have a Landing Page in CloudPages that contains several content blocks. I want to use AMPscript, but somehow it seems as the code in the content blocks will not be executed. Not even requesting URl parameters does work:
I have

%%[ VAR @id SET @id = RequestParameter('id') ]%%

but

%%[=v(@id)=]%%

will be empty, although my url ends on ?id=myID.
What am I missing?

5

You need to print the variable using

%%=v(@id)=%%

And not

%%[=v(@id)=]%%
  • Wow, that was simple, thank you. But I still have the impression that the script doesn't run correctly. Calling functions like RetrieveSalesforceObjects('Subscription__c', 'Id, Contact__c', 'Contact__c', '=', @id) or LookupRows('Subscription__c_Salesforce', 'Contact__c', @id) still doesn't work and leaves me with a blank screen (not even 500 Internal Error, but literally blank). Any more suggestions? :( – Guest9875 Feb 22 '18 at 15:39
  • Please add a new question and provide fuller view of ampscript. @Guest9875 – Tom Callahan Feb 22 '18 at 22:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.