Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/01/2024 07:19 AM
Hi,
has anybody successfully connected SAP C4C to Saviynt?
Anything that came up or we have to look out for? Or is it just basically use the REST connector and it should work according to C4C's API documentation?
Just looking if anyone can provide examples for ConnectionJSON and ImportAccEntsJSON.
Thanks!
Solved! Go to Solution.
10/08/2024 05:30 AM
@TimoR You can use the rest connector.
10/08/2024 10:01 AM - edited 10/08/2024 10:05 AM
Here are API
Authentication (OAuth 2.0)
curl --request POST \
--url https://<your_sap_c4c_instance>/sap/c4c/odata/v1/oauth2/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=<your_client_id>' \
--data-urlencode 'client_secret=<your_client_secret>'
Create
curl --request POST \
--url https://<your_sap_c4c_instance>/sap/c4c/odata/v1/oauth2/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=<your_client_id>' \
--data-urlencode 'client_secret=<your_client_secret>'
Read
curl --request GET \
--url https://<your_sap_c4c_instance>/sap/c4c/odata/v1/cust_odata/ContactCollection \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json'
Update
curl --request PATCH \
--url https://<your_sap_c4c_instance>/sap/c4c/odata/v1/cust_odata/ContactCollection('<contact_id>') \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"FirstName": "Jane"
}'
Delete
curl --request DELETE \
--url https://<your_sap_c4c_instance>/sap/c4c/odata/v1/cust_odata/ContactCollection('<contact_id>') \
--header 'Authorization: Bearer <access_token>'