SAP Knowledge Base Article - Public

3510803 - How to get the UUID of Social Media User Profile through OData API

Symptom

The OData entity SocialMediaUserProfileCollection does not return the UUID which is required for business tasks.

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Send a GET request to the URL https://myxxxxxx.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/SocialMediaUserProfileCollection?$top=1, where xxxxxx represents the tenant numbers.
  2. The field UUID is not presented in the response payload.

Cause

The field UUID is not available by default for the entity SocialMediaUserProfileCollection.

Resolution

It's possible to get the UUID by creating a custom OData service. Please follow the steps below to achieve it.

  1. Go to Administrator > OData Service Explorer.
  2. Select Custom OData Services, and click on the plus sign to create a custom OData service. For example, name the OData service as "userprofileuuid."
  3. Edit the OData service "userprofileuuid."
  4. Select the business object "SocialMediaUserProfile."
  5. Add the field UUID/content to the OData service.
  6. Assign the work center view "SEOD_SMA_SADL_WCVIEW."

  7. Activate the OData service.
  8. Now we are able to get the UUID of a specific social media user profile.

See Also

Creating an OData Service | SAP Help Portal

Keywords

Social Media User Profile, SocialMediaUserProfileCollection, UUID, OData , KBA , LOD-CRM-INT-API , OData API (C4C Only) , LOD-CRM-SC-SM , Social Media , Problem

Product

SAP Cloud for Customer core applications all versions