cancel
Showing results for 
Search instead for 
Did you mean: 

Import permissions from SAP Marketing Cloud

former_member660531
Participant
0 Kudos

Hello community

I hope you're doing well and safe,

Please i want to know if there's a way to export permissions from SAP Marketing,

BR,

Accepted Solutions (1)

Accepted Solutions (1)

bruno_gonzalez
Active Participant

Hi s_chaibisoufiane39. Yes, you can do that using the API_MKT_CONTACT_SRV. You can find the documentation here.

An example GET URL for a specific contact could be something like this:

https://{tenant_url:port}/sap/opu/odata/sap/API_MKT_CONTACT_SRV;v=0002/ContactOriginData(ContactOrigin='<CONTACT_ORIGIN>',ContactID='<CONTACT_ID>')/MarketingPermissions?$format=json

You can also see some other examples here.

Let me know if you need more help. Regards,

Answers (1)

Answers (1)

SCHNEIDERT
Active Contributor

Hey Soufiane,

in addition to what Bruno already mentioned, if you have to extract large data amount to provide it to external systems (not only permission data), check that blog on CX Works.

Therefore the Cloud Data Integration API is used.

For your example you could use the CDS View I_MKT_EXPLICITPERMISSION. A call to check the metadata would look like this https://my123456-api.s4hana.ondemand.com/sap/opu/odata4/sap/cdi_cds/cdi_cds/sap/i_mkt_explicitpermis...

BR Tobias