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