Skip to Content

Update multiple entities of the API_MKT_CONTACT_SRV service through one single flow

Dear Community,

We tried to create/update contact data in SAP Marketing Cloud through the following service: API_MKT_CONTACT_SRV

What we noticed is that if try to create/update multiple entities through a single message, only the main contact entity gets updated.

In fact, we are trying to use that service to firstly create the contact (Contacts entity), then assign/update MarketingAreas (MarketingAreas entity) and then assign/update Marketing Permissions (MarketingPermissions entity). When we do it through one message, SAP Marketing Cloud ignores the Marketing Areas & Marketing Permissions and only creates the Contact.

Did anyone already faced such issue and would you have any idea about how to overcome that issue ?

Thank you

Best regards,

Vahan

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Nov 15, 2018 at 02:29 PM

    Maik Offerle is this something you can help Vahan with?

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 18, 2018 at 06:50 PM

    Hi Vahan,

    please have a look at this payload which creates a contact and assigns marketing permissions.

    Additional payloads you can find at:

    help.sap.com/mkt --> Integration Guide --> Contacts

    BR

    Maik

    --batch
    Content-Type: multipart/mixed; boundary=changeset_01869434-0010-0001
    
    
    --changeset_01869434-0010-0001
    content-type: application/http
    content-transfer-encoding: binary
    
    
    PUT ContactOriginData(ContactID='98979993',ContactOrigin='SAP_HYBRIS_CONSUMER') HTTP/1.1
    Accept: application/json
    Sap-Cuan-RequestTimestamp: '2018-03-27T07:14:34'
    Sap-Cuan-SourceSystemType: EXT
    Sap-Cuan-ForceSynchronousProcessing: X
    Sap-Cuan-SourceSystemId: HYBRIS
    Content-Type: application/json
    Content-Length: 1021
    
    
    {
     "OriginDataLastChgUTCDateTime" : "2018-03-27T07:15:34",
     "CityName" : "Walldorf",
     "Country" : "DE",
     "EmailAddress" : "Tester@tester.com",
     "FirstName" : "Super",
     "LastName" : "Tester",
     "FullName" : "Super Tester",
     "GenderCode" : "1",
     "AddressHouseNumber" : "999",
     "IsConsumer" : false,
     "IsContactPerson" : true,
     "Language" : "DE",
     "MaritalStatus" : "2",
     "MaritalStatusName" : "Married",
     "ContactPostalCode" : "24105",
     "StreetName" : "Dietmar-Hopp-Allee"
    }
    
    
    --changeset_01869434-0010-0001
    content-type: application/http
    content-transfer-encoding: binary
    
    
    POST MarketingPermissions HTTP/1.1
    Accept: application/json
    Sap-Cuan-RequestTimestamp: '2018-03-27T07:15:14'
    Sap-Cuan-ForceSynchronousProcessing: X
    Sap-Cuan-SourceSystemType: EXT
    Sap-Cuan-SourceSystemId: HYBRIS
    Content-Type: application/json
    Content-Length: 1021
    
    
                 {
              "ContactID" : "98979993",
              "ContactOrigin" : "SAP_HYBRIS_CONSUMER",
              "ContactPermissionID" : "Tester@tester.com",
              "ContactPermissionOrigin" : "EMAIL",
              "PermissionUTCDateTime" : "2018-11-16T15:23:35",
              "ContactPermission" : "Y",
              "CommunicationMedium" : "EMAIL",
              "PermissionSourceCommMedium" : "WEB",
              "IsConfirmationRequired" : true
            }
    
    
    --changeset_01869434-0010-0001--
    --batch--
    
    Add comment
    10|10000 characters needed characters exceeded

  • Nov 19, 2018 at 02:48 PM

    Hi Maik,

    Thank you for the explanation and the example.

    What we would like to know is also how to implement a flow in HCI that can produce such payload which will be accepted by Hybris Marketing, would you have any information on that ? Which step can reproduce the same result ?

    Best regards,

    Vahan

    Add comment
    10|10000 characters needed characters exceeded