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

SAP Marketing Cloud - reading & writing Data using a rest client

Former Member
0 Kudos
1,397

Hello dear experts,

I have an issue trying to use a rest client Postman to read and write contact data:

Once I change the request type to GET in Postman and enter the request including the edu tenant from the course we took:

https://<Server>:<Port>/sap/opu/odata/SAP/API_MKT_CONTACT_SRV;v=0002/$metadata

In the response I do not see the different Entity Sets or Entity Types of the Contact OData API, but an error:

<strong>Note:</strong> Since your browser does notsupport JavaScript, you must press the Continuebutton once to

(see the attached screen shot)

What should I do in this situation?

thank you,

Alex.

Accepted Solutions (0)

Answers (4)

Answers (4)

KunalBansal
SAP Champion
SAP Champion

Hello Alex,

It surely seems a user authorization issue, please check SAP Fiori App Reference Library for contact App and compare the roles.

Thank you.

Kunal

KunalBansal
SAP Champion
SAP Champion

Hello Alex,

The URL - {{SystemUrl}}/sap/opu/odata/sap/API_MKT_CONTACT_SRV;v=0002/$metadata

should work for sure, please try again.

Kunal

Former Member
0 Kudos

Hello Kunal,

That is the problem that this link which I was using return error messages such as "401 Nicht autorisiert"

Do you know how to solve this issue?

Thank you,

Alex.

former_member226
Employee
Employee
0 Kudos

Hi,

This could have been caused by either 2 reasons:

1. Try to create communication arrangement SAP_COM_0207 for a user and then use the same user for authentication via POSTMAN.

2. If point 1 does not resolve the issue then in the URL call (from postman) try to append "?saml2=disabled". Sample URL will look like: {{SystemUrl}}/sap/opu/odata/sap/API_MKT_CONTACT_SRV;v=0002/$metadata?saml2=disabled

Use the same authentication parameter as you must have configured for comm arrangement SAP_COM_0207.

This should resolve your issue.

Thanks
Saurabh

Former Member
0 Kudos

Hello Saurabh,

It seems there is a communication arrangement set up:

But in POSTMAN it is still not authorized:

former_member226
Employee
Employee
0 Kudos

Hi,

Its looks strange and I am not sure how you can get rid if this error.

Sorry!

Saurabh

shabakov
Participant
0 Kudos

Hi, Alex.

You should create communication arrangement with Scenario ID: SAP_COM_0207 for this user (marketing01) to solve this issue.

Former Member
0 Kudos

Hi Konstantin,

Thank you for your advice.

What would be the configurations for POSTMAN communication system creation? Host Name etc?

shabakov
Participant
0 Kudos

Alex, you shouldn't create new com. system, you should use your marketing cloud instance.

Former Member
0 Kudos

Konstantin,

Great! Thank you!

The only thing I am missing - do you know how to create a user for Inbound communication if there is no one in the system yet?

shabakov
Participant
0 Kudos

Alex,

you should create a new user in your com. system directly.