I want to pull a subscriber's list of subscriptions into a re-engagement email sent via Marketing Cloud.
You are subscribed to:
How do I pull this information through into the email dynamically using AmpScript?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
Probably your subscribers would be inside the _ListSubscribers where the different names of the Subscription Lists could be gotten via AMPScript LookUpRows.
For that you would do something like (not 100% sure):
var @var1, @rows, @subscriberlist, @rowcount set @var1 = [DataExtensionField that is your subscriberkey / id / emailaddress] set @rows = LookupRows('_ListSubscribers','SubscriberKey',v(@var1),'Status','active') set @rowcount = rowcount(@rows) if @rowcount > 0 then for @i = 1 to @rowcount do set @row = row(@rows,@i) set @subscriberlist = field(@row,"ListName") output(concat("<br>",v(@subscriberlist))) next @i else ??? endif