cancel
Showing results for 
Search instead for 
Did you mean: 

Import external Target Group using CSV

devashish_bhattacharya
Active Participant
0 Kudos

Hi guys,

Have a requirement in Hybris Marketing On-Premise, where we can to create a Target group using either a csv file or to absorb a target group created in an external system.

Was going through some guides and came to know this API -

API_MKT_TARGET_GROUP_SRV

How can we use this API to create Target Group in system ?

Thanks,

Devashish

Accepted Solutions (0)

Answers (3)

Answers (3)

chrigu1
Participant

Hi Devashish,

regarding the point creating a TG from a CSV file. You can drag your key field (below policy number; alternative business partner number etc.) in the segmentation model and set the comparison operator to "Contained in file". The resulting segment contains all contacts from your CSV file. You can filter this segment further or create a target group from it.

Regards Christopher.

devashish_bhattacharya
Active Participant
0 Kudos

Hi Christopher Günther

Thanks for your reply, but even that will require contacts to be present in the system. We basically doesnt want those contacts to be created in the system.

Thanks,

Devashish

chrigu1
Participant

Hi Devashish,

we had the same client requirement. But to my knowledge that does not work. That does not speak to the concept of hybris marketing. You must have a contact (customer, lead, etc) to store some information on.

Regards Christopher.

devashish_bhattacharya
Active Participant
0 Kudos

Thanks Christopher for your help 🙂

devashish_bhattacharya
Active Participant

Thanks Saurabh. That was really helpful.

Do you also have an idea how can we use the entity -

"RebuildTargetGroup" for POST method in the same API ?

We basically want to create a TG with the BPs not existing the system.

Thanks,

Devashish

former_member226
Employee
Employee
0 Kudos

Hi,

You can post the TG details via oData as mentioned in: https://help.sap.com/viewer/e68e4c8c856d429b85c2a7370c3553ae/1802%20YMKT/en-US/97ed2d7497c94d8589082...

Payload to be used for POST of TG header is:

URL: https://gdm9-odatadev.apjdemo.hybris.com/sap/opu/odata/sap/API_MKT_TARGET_GROUP_SRV/TargetGroups
{
	"TargetGroupName":"Via oData API ",
	"TargetGroupDescription":"Via OData API Desc",
	"TargetGroupLifeCycleStatus":"1",
	"TargetGroupMemberType":"03",
	"MarketingArea":"CXXGLOBAL"
}

And to add member:

URL: https://<Host>:<Port>/sap/opu/odata/sap/API_MKT_TARGET_GROUP_SRV/TargetGroups(guid'02000a21-210c-1ee8-9cd9-a7248d523e7f')/TargetGroupInteractionContacts


Post Call:
{
"TargetGroupUUID":"02000a21-210c-1ee8-9cd9-a7248d523e7f",    // TG UUID created above
"InteractionContactId":"saurabh.XXXXX@sap.com",
"InteractionContactOrigin":"EMAIL"
}

Thanks

Saurabh

boudhayan-dev
Employee
Employee
0 Kudos

Hi Saurabh,

Is there a way to "RELEASE" the Target Group that is created via the API ? Currently, after assigning the Contacts to the Target Group, I still see that it's status is "IN PREPARATION". Is there a way to Release it from API call itself ?

former_member267312
Contributor