Last active
October 19, 2017 19:23
-
-
Save wvpv/af2e0a99381df6666242 to your computer and use it in GitHub Desktop.
SFMC AMPScript Lookup value of single column value from a certain row
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
%%[ | |
var @DEColumn1, @lookupValue | |
set @lookupValue = AttributeValue("lookupField") /* value from attribute or DE column in send context */ | |
set @lookupValue = "whoa" /* or a literal value */ | |
set @DEColumn1 = Lookup("DataExtensionName", "DEColumn1", "LookupColumn", @lookupValue) | |
]%% | |
DEColumn1 is %%=v(@DEColumn1)=%% |
It's just the key value I'm using to match a row in the DataExtensionName data extension.
I've updated the examples on my blog for reference: https://sprignaturemoves.com/ampscript-lookup-examples/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Thanks for the example. I would like to know what "whee" refer into your DE?
Thanks!