-
-
Save eliotharper/329165f6d8489ebf72d39fcfe88fd184 to your computer and use it in GitHub Desktop.
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
<script runat="server" language="javascript"> | |
Platform.Load("core", "1"); | |
try { | |
var CheckDE = DataExtension.Init("DE_Name_TO_Check"); | |
var CheckDEStatus = CheckDE.Rows.Lookup(["FieldName"], [Value]); | |
</script> | |
%%[SET @DEExists = "true"]%% | |
<script runat="server" language="javascript"> | |
Platform.Load("core", "1"); | |
} | |
catch (e) { | |
</script> | |
%%[SET @DEExists = "false"]%% | |
<script runat="server" language="javascript"> | |
Platform.Load("core", "1"); | |
} | |
</script> | |
This is to confirm if DE Exists: %%=v(@DEExists)=%% | |
%%[ | |
if @DEExists == true then | |
var @rows | |
set @rows = LookupRows('DE Name', 'Field', 'Value') | |
endif | |
]%% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment