Data Extensions in the Salesforce Marketing Cloud platform are simply database tables in which you can store data you need for your campaigns.
You can add rows to data extensions using:
With the API, you have a few options — SOAP being the most complex, AMPscript the simplest:
You can use AMPscript in emails, landing pages or SMS keyword configurations. I’ll use AMPscript in this example.
Here’s how you add or update a single row in a data extension named My_Test_DataExtension using the UpsertDE() function:
Here’s a breakdown of the UpsertDE() arguments in this example:
- The name of the data extension to receive the data
- Number of columns you’re using to check to see if there’s a matching row already in the data extension. (This means there will be only 1 pair of name and value arguments following this parameter. Â You could specify more.)
- The lookup column
- The lookup value
- Column 1 to update
- Column 1 update value
- Column 2 to update
- Column 2 update value
For further reading:
UpdateDE()
AMPscript Functions
UpsertData() (for SMS keywords)
UpdateData() (for SMS keywords)
(Visited 2,761 times, 1 visits today)