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.

1 Answer 1

7

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>
2
  • 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? Commented Mar 15, 2018 at 6:43
  • I believe Mobile Connect would require a REST API call, not default SSJS function. Commented Mar 15, 2018 at 13:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .