Skip to content

Instantly share code, notes, and snippets.

@zuzannamj
Created January 14, 2020 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zuzannamj/b9d12d1310c185e1a4263b8e87796910 to your computer and use it in GitHub Desktop.
Save zuzannamj/b9d12d1310c185e1a4263b8e87796910 to your computer and use it in GitHub Desktop.
/* update email in All Subscribers list */
IF RequestParameter("email") != AttributeValue("emailaddr") THEN
SET @email = RequestParameter("email")
SET @Subscriber = CreateObject("Subscriber")
SetObjectProperty(@Subscriber, "SubscriberKey", @contactId)
SetObjectProperty(@Subscriber, "EmailAddress", @email)
SET @Status = InvokeUpdate(@Subscriber, @createErrDesc, @createErrNo, @createOpts)
ENDIF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment