You need to sign in to do that
Don't have an account?
Nicole Levy
When I add the following line in the AMPscript block of my cloud page:
CloudPages AMPscript CreateObject(“Subscriber”) is crashing page
When I add the following line in the AMPscript block of my cloud page:
SET @subscriber = CreateObject("Subscriber")the page will not load. This is the specific line that is crashing the page, the only other AMPscript on the page currently are a couple of variables being set that are pulling the email and subscriber key from the context. Not sure why this is happening, can't seem to find anyone else with the same issue. Thanks in advance!
All Answers
Refer below document for the sample code.
https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/creating_a_custom_profile_center_using_ampscript_and_the_soap_api.htm
https://salesforce.stackexchange.com/questions/102486/not-able-to-update-subscriber-status-using-ampscript
Best Regards,
Sandhya