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(). 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.