

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

# Schreiben in Entitäten von Salesforce Marketing Cloud
<a name="salesforce-marketing-cloud-writing-to-entities"></a>

**Voraussetzungen**
+ Ein Salesforce-Marketing-Objekt, in das Sie schreiben möchten. Sie müssen den Namen des Objekts angeben, z. B. `List` oder `Campaigns` oder eine der anderen in der Tabelle unten aufgeführten Entitäten.
+ Der Connector von Salesforce Marketing Cloud unterstützt drei Schreibvorgänge:
  + INSERT
  + UPSERT
  + UPDATE

  Wenn Sie die Schreibvorgänge `UPDATE` und `UPSERT` verwenden, muss die Option `ID_FIELD_NAMES` bereitgestellt werden, um das Feld „Externe ID“ für die Datensätze anzugeben. 

**Unterstützte Entitäten für das Ziel**:


| Entität | Priorität | Schnittstelle (REST, SOAP usw.) | Kann eingefügt werden | Kann aktualisiert werden. | Kann aktualisiert/eingefügt werden | 
| --- | --- | --- | --- | --- | --- | 
| Kampagnen | P0 | REST | Y- Einzel | Y- Einzel | N | 
| Inhalts-Assets | P0 | REST | Y- Einzel, Bulk | Y- Einzel | N | 
| Kontakt | P1 | REST | Y- Einzel | Y- Einzel | N | 
| Domänenverifizierung | P1 | REST | Y- Einzel | Y- Einzel, Bulk | N | 
| Ereignisbenachrichtigung-Callback | P1 | REST | Y- Einzel | Y- Einzel | N | 
| Abonnement für Ereignisbenachrichtigung | P1 | REST | Y- Einzel | Y- Einzel | N | 
| Messaging | P1 | REST | Y- Einzel | N | N | 
| Geschachteltes Objekt-Tag | P2 | REST | Y- Einzel | Y- Einzel | N | 
| Seed-Liste | P1 | REST | Y- Einzel | Y- Einzel | N | 
| Einrichtung | P1 | REST | Y- Einzel | Y- Einzel | N | 
| Datenerweiterung | P0 | SOAP | Y- Einzel | Y- Einzel | Y- Einzel | 
| Email | P0 | SOAP | Y- Einzel | Y- Einzel | N | 
| Auflisten | P0 | SOAP | Y- Einzel | Y- Einzel | N | 
| Senden | P0 | SOAP | Y- Einzel | N | N | 
| Subscriber | P0 | SOAP | Y- Einzel | Y- Einzel | N | 

**Beispiel für einen INSERT-Vorgang für REST**:

```
salesforcemarketingcloud_write = glueContext.write_dynamic_frame.from_options(
    connection_type="salesforcemarketingcloud",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "Campaigns",
        "API_VERSION": "v1",
        "writeOperation" : "INSERT",
        "INSTANCE_URL": "https://**********************.rest.marketingcloudapis.com"
    }
)
```

**Beispiel für einen INSERT-Vorgang für SOAP**:

```
salesforcemarketingcloud_write = glueContext.write_dynamic_frame.from_options(
    connection_type="salesforcemarketingcloud",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "List",
        "API_VERSION": "v1",
        "writeOperation" : "INSERT",
        "INSTANCE_URL": "https://**********************.rest.marketingcloudapis.com"
    }
)
```

**Beispiel für einen UPDATE-Vorgang für REST**:

```
salesforcemarketingcloud_write = glueContext.write_dynamic_frame.from_options(
    connection_type="salesforcemarketingcloud",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "Campaigns",
        "API_VERSION": "v1",
        "writeOperation" : "UPDATE",
         "ID_FIELD_NAMES": "id",
        "INSTANCE_URL": "https://**********************.rest.marketingcloudapis.com"
    }
)
```

**Beispiel für einen UPDATE-Vorgang für SOAP**:

```
salesforcemarketingcloud_write = glueContext.write_dynamic_frame.from_options(
    connection_type="salesforcemarketingcloud",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "List",
        "API_VERSION": "v1",
        "writeOperation" : "UPDATE",
         "ID_FIELD_NAMES": "id",
        "INSTANCE_URL": "https://**********************.rest.marketingcloudapis.com"
    }
)
```

**Beispiel für einen UPSERT-Vorgang für SOAP**:

```
salesforcemarketingcloud_write = glueContext.write_dynamic_frame.from_options(
    connection_type="salesforcemarketingcloud",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "DataExtension/Insert-***E/6*******3",
        "API_VERSION": "v1",
        "writeOperation" : "UPSERT",
        "INSTANCE_URL": "https://**********************.rest.marketingcloudapis.com"
    }
)
```