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?

1 Answer 1

6

You need to print the variable using

%%=v(@id)=%%

And not

%%[=v(@id)=]%%
2
  • 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
    Commented Feb 22, 2018 at 15:39
  • Please add a new question and provide fuller view of ampscript. @Guest9875 Commented Feb 22, 2018 at 22:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .