---
schema_version: "1"
id: 5356fe1f987b1d945c1c866e6ee7dacb43f4e980d548ac29a69dc05d8f56161f
title: Importing Data When Field-Level Encryption is Enabled
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_overview_encryption_data_imports.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_overview_encryption_data_imports.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: aea4251b9421389c21f6e0cfa2db106a5b1e625153a8f91129b7f3cc30e35329
description: Learn about the options for importing data into Marketing Cloud Engagement when Field-Level Encryption is enabled.
products:
  - Marketing
  - Marketing Cloud Engagement
release: "264"
---
# Importing Data When Field-Level Encryption is Enabled

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](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/dataextensionobject.html) | Synchronous |
| REST API | [PUT](https://developer.salesforce.com/docs/marketing/marketing-cloud/references/mc-data_extension_rows_sync?meta=Summary) (upsert) | Synchronous |
| REST API | [POST](https://developer.salesforce.com/docs/marketing/marketing-cloud/references/mc-data_extension_rows_async?meta=Summary) (insert) | Asynchronous |
| REST API | [PUT](https://developer.salesforce.com/docs/marketing/marketing-cloud/references/mc-data_extension_rows_async?meta=Summary) (upsert) | Asynchronous |

To insert data into a data extension by using AMPscript code, use the functions listed in this table.

 
| Function | Notes |
| --- | --- |
| [InsertData](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-data-extension/mc-ampscript-reference-data-extension-insert-data.html) | Inserts data into a data extension. Use this function in CloudPages, landing pages, microsites, and SMS messages in Mobile Connect. |
| [InsertDE](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-data-extension/mc-ampscript-reference-data-extension-insert-de.html) | Inserts data into a data extension. Use this function to insert data into a data extension from emails. |
| [UpsertData](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-data-extension/mc-ampscript-reference-data-extension-upsert-data.html) | Upserts data into a data extension. Use this function in CloudPages, landing pages, microsites, and SMS messages in Mobile Connect. |
| [UpsertDE](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-data-extension/mc-ampscript-reference-data-extension-upsert-de.html) | 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.