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

Multi value field in SAP Marketing cloud

0 Likes
719

Hi SAP,

We have a requirement, where we need a multivalue field (Tag) in the SAP marketing cloud.

Our scenario is: Action: Loading contact "A" with tag "new" through contact API

Result: Contact A should have a tag of "new"

Action: Loading the same contact A with tag "latest" through contact API

Result: Contact A should have tag "new" and "latest"

In our scenario at one-time contact will have only one tag value, but we require to see all the tag values(past tag) for that contact in segmentation, in this situation can we use the Marketing attribute feature?

Please let me know if we can build some custom solutions for this.

Thanks!

Anuja

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member737455
Participant
0 Likes

I think you can use MarktingAttributes for your use case.
I would suggest to create a custom field to store the import time stamp, so you can use this time stamp to geht the latest attribute within the segmentation (if you want).

When Importing a Contact, you need to set a PATCH operation:

PATCH MarketingAttributes(ContactID='<ContactID>',ContactOrigin='<ContactOrigin>',MarketingAttributeCategory='<MarketingAttributeCategory>',MarketingAttributeValue='<MarketingAttributeValue>') HTTP/1.1
Content-Length: 1035
Accept: application/json
Sap-Cuan-RequestTimestamp: '2017-09-29T12:13:14'
Sap-Cuan-SourceSystemType: EXT
Sap-Cuan-SourceSystemId: HYBRIS
Sap-Cuan-SequenceId: UpdatePatch 
Content-Type: application/json


{
"ContactID": "<ContactID>",
"ContactOrigin": "<ContactOrigin>"',
"MarketingAttributeCategory": "<MarketingAttributeCategory>",
"MarketingAttributeValue": "<MarketingAttributeValue>",
"CustomField_ImportTimestamp": "2017-09-29T12:13:14"
}
<br>
PUT

Update or create marketing attributes.

PATCH
Add one new marketing attribute


https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/2102.500/en-US/95f2c87395bb4dda90501042...

former_member599277
Contributor
0 Likes

Hi Anuja,

Yes for the Multi Value field , You are right , you can go with Marketing Attributes feature which ideally should solve your requirement.

Regards,
Saravana.

former_member599277
Contributor
0 Likes

Hi Anuja,

While Creating Marketing attributes , Please follow as mentioned in KBA

2837593 - Issue with Marketing Attributes.

Regards,
Saravana.

0 Likes

Hi saravana92

With the Marketing attribute feature, when we are loading the contact with the new tag "latest", it is replacing the tag "new".

Can you please let me know how we can handle this in marketing atrribute.

Thanks!

former_member599277
Contributor
0 Likes

Hi Anuja,

Generally PUT or PATCH operation will not overwrite Marketing Attribute values , it is just an Upsert Operation.
So have you used odata API_MKT_ATTRIBUTE_CATEGORY_SRV to import the marketing attribute category first ? and then attributes using Contact API ?

Regards,
Saravana.