0

Is there a way to Activate a subscriber using Server Side Javascript or Ampscript. I am able to Unsubscribe an Active subscriber but not able to Activate an Unsubscribe subscriber in SFMC.

Is there a way.

Thanks.

6

In your scenario, you'd use the update SSJS function to change the status of the subscriber.

Here is an example:

<script runat="server">
Platform.Load("core","1");
  var subscriber = {"Status": "Active"};
  var subObj = Subscriber.Init("Subscriber_Key_Here");
  var status = subObj.Update(subscriber);
</script>
  • 1
    Works, Thank you. Just wondering if there are similar methods for Opting-In and Opting-Out Mobile Connect Contacts as well. Are there any? – Sanchit Mittal Mar 15 '18 at 6:43
  • I believe Mobile Connect would require a REST API call, not default SSJS function. – Gortonington Mar 15 '18 at 13:44

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.