Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save katydorjee/cf23a78fa240d7542fe591d12f72103c to your computer and use it in GitHub Desktop.

Select an option

Save katydorjee/cf23a78fa240d7542fe591d12f72103c to your computer and use it in GitHub Desktop.
Returns specified value from a Data Extension - Ampscript
%%[
set @returnValue = Lookup("Data Extension name", "Field name fetch from the DE", "Field for matching condition", "Value for matching condition")
]%%
%%=v(@returnValue)=%%
<!--
This function will return only the first occurrence of the record in a DE
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment