Skip to Content

API call to POST multiple contacts to a Target group

Hi Team,

i have a requirement to add list of contacts to a particular Target group via API call from SAP CPI.

I'm referring to the below link

https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/1902.500/en-US/1dba22d03a4f408ea2041f5885b0cab3.html?q=API_MKT_TARGET_GROUP_SRV

API URL: POST /sap/opu/odata/SAP/API_MKT_TARGET_GROUP_SRV/TargetGroups(guid'9CDCD400-0C70-1ED6-BF9C-0C6E0BB242E9')/TargetGroupInteractionContacts

Sample for multiple contacts:

[ { "InteractionContactUUID":"8CDCD400-0C70-1ED6-BF9C-0C6E0BB242E9", "TargetGroupUUID":"9CDCD400-0C70-1ED6-BF9C-0C6E0BB242E9" }, { "InteractionContactUUID":"7CDCD400-0C70-1ED6-BF9C-0C6E0BB242E8", "TargetGroupUUID":"9CDCD400-0C70-1ED6-BF9C-0C6E0BB242E9" } ]

I'm getting bad request error with this request.

Kindly assist in the API call for posting multiple contacts to a TG.

Regards,

Janani

Add a comment
10|10000 characters needed characters exceeded

  • Hello Janani Mohan

    Is this issue sorted out? If yes, can you please let me know how you have assigned multiple Interaction Contacts to a Target Group. I am able to assign single contact successfully, facing issue in case of multiple contacts.

    Regards

    Madhu

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 12, 2019 at 01:15 PM

    Hello Janani,

    Please check the sample OData call and follow - https://api.sap.com/api/API_MKT_TARGET_GROUP_SRV/resource

    Also check payload example - https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/1908.500/en-US/1dba22d03a4f408ea2041f5885b0cab3.html

    Kind Regards,

    Kunal Bansal

    SAP Marketing Cloud, Consultant

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2019 at 08:57 AM

    Hi Kunal,

    The sample mentioned above is for posting single contact to the Target Group.

    My need is to post Batch Contact records to Target Group. Eg. 1000+ InteractionContactUUID at once in Batch.

    Regards,

    Janani

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2019 at 09:05 AM

    My query is about adding multiple Contacts by it's UUID to the existing Target Group.

    Add a comment
    10|10000 characters needed characters exceeded

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.