cancel
Showing results for 
Search instead for 
Did you mean: 

Subscription to communication categories via ODATA

SauMaris
Contributor
0 Kudos

How user subscription to communication categories can be updated via ODATA service? Which entity should be used? And in which table data is stored (to check update success).

Are these subscriptions visible in a contact fact sheet?

Maris

Accepted Solutions (1)

Accepted Solutions (1)

JanMatthes
Advisor
Advisor
0 Kudos

Hi Maris,

yes, subscriptions appear in the fact sheet. See screenshot below : Could you provide the OData Service and entity?

BTW: Easiest way to use subscriptions is to create a Landing Page and link it to the communication category as you can see it in the video.

Cheers

Jan

Answers (1)

Answers (1)

Arne_Manthey
Advisor
Advisor
0 Kudos

Hi,

use the OData service

cuan_import_srv/ImportHeaders

Here is an example of a JSON file:

{

  "Id" : "",

  "Timestamp" : "${DateTime}",

  "UserName" : "USER",

  "SourceSystemId" : "0815326117",

  "Interactions" : [

    {

      "Key" : "",

      "CommunicationMedium" : "${CommunicationMedium}",

      "ContactId" : "${EmailAddress}",

      "ContactIdOrigin" : "EMAIL",

      "InteractionType" : "NEWSLETTER_SUBSCR",

      "MarketingPermissionCommunicationMedium" : "${MarketingPermissionCommunicationMedium}",

      "MarketingPermissionDirection" : "${MarketingPermissionDirection}",

      "Timestamp" : "${DateTime}",

      "AdditionalObjectReferences" : [

        {

          "ObjectType" : "CUAN_COMMUNICATION_CATEGORY",

          "ObjectId" : "${NewsletterCategoryWithLeadingZeros}"

        }

      ]

    }

  ]

}


Replace all strings like '${...}' with the proper data. Here are some guidelines/examples:

  • ${DateTime}: Format yyyy-MM-ddTHH:mm:ss for example: 2016-05-24T12:00:00
  • ${CommunicationMedium}: Communication medium via which the subscription was done (example: WEB)
  • ${MarketingPermissionCommunicationMedium}: 'EMAIL' for email newsletters
  • ${MarketingPermissionDirection}: 'O' for outbound permission
  • ${NewsletterCategoryWithLeadingZeros}: 10-digit ID of communication category


I am not sure about the fields "UserName" and "SourceSystemId". Maybe you need to adapt those to your system.

Regards,
Arne