Skip to Content

Set Marketing Area for existing contacts in Hybris Marketing Cloud

Hello dear community,

For existing contacts that we have in Hybris Marketing Cloud, we would like to set Marketing Areas. According to the documentation and the few discussions about it that I could find online, it should be done through an oData service: API_MKT_CONTACT_SRV

Which is what we tried, based on a package in HCI that does it via a file hosted on an FTP (SAP Hybris Marketing Cloud - file based data load). Unfortunately, it doesn't work.

When I send Marketing Areas for a specific contact to Hybris Marketing, Hybris Marketing gives an error message mentioning that the Timestamp misses. The point is, there is no Timestamp field for updating Marketing Areas.

If anyone has ever succeeded in setting Marketing Areas through oData for contacts in yMkt, could you provide some hints/information about the best way to achieve that.

Thanks !

Best regards,

Vahan

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Aug 06, 2018 at 06:26 AM

    Hi Vahan,

    i executed your example in our cpi test landscape, and i could post it through till sap marketing cloud with adding the timestamp in the headers segment:

    <?xml version="1.0" encoding="UTF-8"?> <batchParts> <batchChangeSet> <batchChangeSetPart> <method>PUT</method> <headers> <header> <headerName>Sap-Cuan-SourceSystemId</headerName> <headerValue>CPI-Contacts</headerValue> </header> <header> <headerName>Sap-Cuan-SourceSystemType</headerName> <headerValue>CPI</headerValue> <headerName>Sap-Cuan-RequestTimestamp</headerName> <headerValue>2018-08-06T03:13:14</headerValue> </header> </headers><MarketingAreas> <MarketingArea> <ContactID>C-100</ContactID> <ContactOrigin>SAP_HYBRIS_CONSUMER</ContactOrigin> <InteractionContactMktgArea>MA-Belgium</InteractionContactMktgArea> </MarketingArea> </MarketingAreas> </batchChangeSetPart> </batchChangeSet> </batchParts>

    See also payload examples in: https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/1805.500/en-US/39e1b76b82274b5697ff629d7ec7c1f0.html

    Note that it is planned to enhance the contacts file upload with marketing areas in 1811 shipment.

    best regards, Sophie.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 05, 2018 at 09:54 PM

    Hi Vahan,

    have you already tried the "Marketing Application Jobs" App?

    There is a application job available in SAP Marketing Cloud available to enrich contacts with Marketing Areas since 1805.

    See the picture below. Another one is available to delete a marketing area.

    Otherwise can you add some sample payload what you are trying to upload to Marketing Cloud via OData?

    Can you please mark the que

    stions as answered, if the application job method works for you?

    Thanks and regards

    Maik


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 05, 2018 at 10:52 PM

    Hello Maik,

    We knew for the Marketing Application Job but it doesn't fit to the current requirements, it needs to be done through an import of CSV (through HCI which transforms it in an oData service).

    Here is an example of Payload:

    <?xml version="1.0" encoding="UTF-8"?> <batchParts> <batchChangeSet> <batchChangeSetPart> <method>PUT</method> <MarketingAreas> <MarketingArea> <ContactID>458745</ContactID> <ContactOrigin>SAP_FILE_IMPORT</ContactOrigin> <InteractionContactMktgArea>MA-Belgium</InteractionContactMktgArea> </MarketingArea> </MarketingAreas> </batchChangeSetPart> </batchChangeSet> </batchParts>

    Thank you for your help !

    Best regards,

    Vahan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 19, 2018 at 05:22 PM

    If we wanted a quick set up for a prototype, could we use the Contacts app -> Import of a CSV file and if so what format is needed ? or do we need to use the IMPORT app -> interactions?

    thanks,

    Arlene

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Arlene,

      Both actions will give you the same result. The "Contact App -> Import of CSV" and the "Import App" work in the same way and require the same quantity of manipulations.

      In both cases you'll have to download a "CSV Template", fill it with the data and upload it.

      You can check the status of your upload in the "Import Monitor" app.

      I hope this helps.

      Best regards,

      Vahan

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.