Created
October 20, 2020 12:42
-
-
Save MamaiRachid/bfa3e62e9760d60f4bdab9074c780df4 to your computer and use it in GitHub Desktop.
Get contact's consent from data extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%[ | |
SET @emailaddr = AttributeValue("emailaddr") | |
SET @subKey = AttributeValue("_subscriberkey") | |
/* Get the NewsletterEmail_Consent value from Consents Data Extension */ | |
SET @rowsConsents = LookupRows("Consents", "SubscriberKey", @subKey) | |
IF RowCount(@rowsConsents) > 0 then | |
SET @consentRow = Row(@rowsConsents,1) | |
SET @newsletterEmail_Consent = Field(@consentRow, "NewsletterEmail_Consent") | |
ENDIF | |
]%% | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment