cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error during replication of Members in Target group from Sales Cloud to Marketing Cloud

0 Likes
1,147

Dear Experts,

We are trying to replicate Target groups and it's members from Sales Cloud to Marketing Cloud. We were able to successfully achieve the replication of Target groups but there is an issue when replicating the members of the Target group from Sales Cloud as Contacts of the corresponding Target group in Marketing cloud.

APIs used in this scenario are as below:

1) “Target Group” is used to replicate header level information.

2) “TargetGroupInteractionContacts” is use to replicate Contact/Member information.

Please refer to the attached screenshots for your reference.

Also, below is the SOAP UI sender payload:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<soapenv:Header/>

<soapenv:Body>

<TargetGroups>

<TargetGroupEntityType>

<TargetGroupUUID>01234567-89ab-cdef-0123-456999abcdef</TargetGroupUUID>

<TargetGroupName>Test2loujf</TargetGroupName>

<TargetGroupDescription>Test234hffhf</TargetGroupDescription>

<TargetGroupMemberType>03</TargetGroupMemberType>

<TargetGroupLifeCycleStatus>2</TargetGroupLifeCycleStatus>

<MarketingArea>CXXGLOBAL</MarketingArea>

<TargetGroupInteractionContact>

<TargetGroupInteractionContactEntityType>

<InteractionContactUUID>01234567-89ab-cdef-0123-456789abcdef</InteractionContactUUID>

<InteractionContactId>ICId</InteractionContactId>

<InteractionContactOrigin>8888888888</InteractionContactOrigin>

</TargetGroupInteractionContactEntityType>

</TargetGroupInteractionContact>

</TargetGroupEntityType>

</TargetGroups>

</soapenv:Body>

</soapenv:Envelope>

Kindly suggest if anything is missing here.

A quick resolution would be really appreciated.

Thanks and Regards

Vishwas P

iflow-screenshot.png

contacts-odata-adapter-configuration-screenshot-1.png

contacts-odata-adapter-configuration-screenshot-2.png

error-screenshot.png

payload-for-contacts.png

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member226
Employee
Employee

Hi,

Based on the payload provided in snapshot "payload-for-contacts.png", I get a clear error in Postman itself due to malformed syntax/payload.

Error text: <message xml:lang="en">System expected the element '{http://www.w3.org/2005/Atom}entry'</message>

In order to avoid this error, there are 2 way to proceed:

1. If you want to keep using XML payload then please format you payload as follow (content-type: application/atom+xml):

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
    <atom:content type="application/xml">
        <m:properties>
            <d:InteractionContactId>miller@democloud.hybris.com</d:InteractionContactId>
            <d:InteractionContactOrigin>EMAIL</d:InteractionContactOrigin>
            <d:InteractionContactUUID>02000A1B-A953-1EDA-A289-409C12387F65</d:InteractionContactUUID>
            <d:TargetGroupUUID>02000A1B-A953-1EDA-A9A3-7638CE036F9A</d:TargetGroupUUID>
        </m:properties>
    </atom:content>
</atom:entry>

2. OR post the JSON payload to SAP Marketing Cloud as it is widely accepted and easier to understand/format.

{
    "InteractionContactUUID": "00163E38-C29E-1ED9-A0F2-94006D0BA835",
    "TargetGroupUUID": "02000A1B-A953-1EDA-A9A3-7638CE036F9A",
    "InteractionContactOrigin": "SAP_C4C_BUPA",
    "InteractionContactId": "1010363"
}

Let know if this helps.

BR
Saurabh

KunalBansal
SAP Champion
SAP Champion

Hello Vishwas,

Please go through standard Help Page of Payload Example once and model your payload accordingly.

If it doesn't help, get back with your new payload and findings

Best Regards,

Kunal

0 Likes

Hi Saravana,

thank you for your answer.

as per documentation it is possible to release a TG automatically by creating a campaign.

  • Creating a campaign for a target group that is not yet released, automatically releases the target group.

Target Group Status - SAP Help Portal

Is it not possible by creating a campaign with the API?

Best Regards

Yoro

former_member599277
Contributor
0 Likes

Dear Yoro,

I just verified from the API logic , its not possible to change the Status using API.

There are several ways you can change the status of a target group:

  1. To change the status of an individual target group, go to the target group details and select the corresponding action.
  2. To change the status of several target groups at once, select the entries in the target group list and choose Change Status.
  3. If the target group approval workflow is activated, approvers can use the app Marketing Approvals to release or reject target groups. Approvers can also see if they have any requests for approval of target groups in the notifications area.

https://help.sap.com/viewer/b88f770e4b7c4ecead5477e7a6c7b8f7/2102.500/en-US/5fa895f8df394be88d576067...

Hope this helps.

Regards,
Saravana.

0 Likes

Hi all,

how is the status of the target group in SMC.

<TargetGroupLifeCycleStatus>2</TargetGroupLifeCycleStatus>

Can the status be set to released directly in SMC by the API?

Thanks

Yoro