We are building a custom preference center that will be accessed via a link in an email built in SFMC Email Studio. We have the following in the anchor tag of the link in the email <a href="%%=CloudPagesURL(1016)=%%">Update Preferences When we go to send the email we get an error: invalid function call: CloudPagesURL([1016]). Attribute or Field Name: 1016. Invalid Content

I know that the Cloud Page IS published and can be accessed if I paste the URL into a browser. I need to pass the subscriber context, jobID and batchID to later make a LogUnsubEvent call.

I have scoured docs and forums. Anyone have any ideas? is there something on the account that needs to be turned on, maybe??enter image description here

  • Have you checked to make sure the ID is the correct one? – garek007 Apr 22 '18 at 13:18
  • @garek007 it was the 1st thing I did – Paulette Vallad Apr 23 '18 at 18:55
  • I'd put in a support request, seems like something may not be provisioned in your account. – garek007 Apr 24 '18 at 11:23

Do you have Web Analytics Connector (WAC) enabled in your account? I've ran into issues calling Cloud Pages in accounts with this enabled.

As a work-around, try wrapping the CloudPagesURL() function with RedirectTo().



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.