cancel
Showing results for 
Search instead for 
Did you mean: 

How to open Odata url via single sign on user

samirv
Participant
0 Kudos
1,194

When trying to open an odata query url with a user with a user id and password, this is possible. For example the below url will result in a user id an password prompt which once entered will return the result of the odata call.

https://myxxxxxx.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ServiceRequestCollection?$filter=ID eq '1234567'

However if I have a user with single sign on, how can this this be done, for example both the below urls prompt for a user id and password but since the user is single sign on there is no password.

https://myxxxxxx.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ServiceRequestCollection?$filter=ID eq '1234567'

https://myxxxxxx-sso.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ServiceRequestCollection?$filter=... eq '1234567'

Accepted Solutions (1)

Accepted Solutions (1)

former_member438195
Participant

Hello Samir,

Please try to use the following:

URL https://myXXXXXX.crm.ondemand.com/sap/c4c/odata-sso/v1/c4codataapi (where XXXXXX represents your tenant)

For individual OData Services (such as, for example, ProductCollection), the URL should be https://myXXXXXX.crm.ondemand.com/sap/c4c/odata-sso/v1/product.

BR,

Vandré

Answers (1)

Answers (1)

samirv
Participant
0 Kudos

Hello vandre01

That was almost correct and gave me a great hint - the slight correction would be that it needs a "-sso" just after the "xxxxxx". Many thanks!

Samir