cancel
Showing results for 
Search instead for 
Did you mean: 

Upload Pre OptIn for Marketing Permission (MKT_PERM_OPTIN_PRE) does not work

Katharinam
Participant
0 Kudos

Dear Experts, 

we would like to import the interaction type "Pre OptIn for Marketing Permission (MKT_PERM_OPTIN_PRE)" to trigger a DOI email .

But we get the following error message: 

Upload Pre Perm.png

Can someone help us with this? 

Thanks in advance!
Katharina

chris_watters
Explorer
0 Kudos
I had the same requirement. Implementation partner wasn't able to provide a solution through workbench. Interested if anyone had a solution but I think it'll be through the marketing permissions API only.
View Entire Topic
isathore
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sorry for the delay Katharina.

Using the Data File Load app, we don't allow upload pre-opt-in interactions.

It is however possible with the contact API. See Payload Examples | SAP Help Portal of the contact API Structure of OData Service API_MKT_CONTACTS | SAP Help Portal

In Payload Examples | SAP Help Portal  under section PUT: Update or Create Marketing Permissions and Marketing Subscriptions for a Contact, you can see:

--batchContent-Type: multipart/mixed; boundary=changeset_01869434-0010-0001

--changeset_01869434-0010-0001content-type: application/http
content-transfer-encoding: binary

PUT MarketingPermissions(ContactID='C98979992',ContactOrigin='SAP_C4C_BUPA',ContactPermissionID='max.mustermann@mail.de',ContactPermissionOrigin='EMAIL',MarketingArea='',CommunicationMedium='EMAIL') HTTP/1.1
Accept: application/jsonSap-Cuan-RequestTimestamp: '2019-07-01T13:04:46.002'
Sap-Cuan-SourceSystemType: EXTSap-Cuan-SourceSystemId: C4C
sap-cuan-referenceid: REQ1Content-Type: application/jsonContent-Length: 1021

        {
          "PermissionUTCDateTime" : "2019-07-01T13:04:46.002",
          "PermissionGranted" : "Y",
          "PermissionSourceCommMedium" : "WEB",
          "IsConfirmationRequired" : false,
          "PermissionNoteText" : "Sample Permission"
        }

If you set true to IsConfirmationRequired, then it will create a pre-opt-in interactions.

I hope this helps, Isabelle