Learn about the options for importing data into Marketing Cloud Engagement when Field-Level Encryption is enabled.
To import data into Marketing Cloud Engagement when Field-Level Encryption is enabled, use an API method or AMPscript function to insert the data into a data extension.
You can use the Marketing Cloud Engagement SOAP API or REST API to insert rows in a data extension. This table lists the options for inserting data extension rows using the APIs.
| API | Method | Synchronous or Asynchronous |
|---|---|---|
| SOAP API | Create | Synchronous |
| REST API | PUT (upsert) | Synchronous |
| REST API | POST (insert) | Asynchronous |
| REST API | PUT (upsert) | Asynchronous |
To insert data into a data extension by using AMPscript code, use the functions listed in this table.
| Function | Notes |
|---|---|
| InsertData | Inserts data into a data extension. Use this function in CloudPages, landing pages, microsites, and SMS messages in Mobile Connect. |
| InsertDE | Inserts data into a data extension. Use this function to insert data into a data extension from emails. |
| UpsertData | Upserts data into a data extension. Use this function in CloudPages, landing pages, microsites, and SMS messages in Mobile Connect. |
| UpsertDE | Upserts data into a data extension. Use this function to insert data into a data extension from emails. |
You can also input data directly into a data extension by adding individual records in Contact Builder. Data that you manually enter into Contact Builder is automatically encrypted.