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
- 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.
- 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.
- Go to Administrator > OData Service Explorer.
- Select Custom OData Services, and click on the plus sign to create a custom OData service. For example, name the OData service as "userprofileuuid."
- Edit the OData service "userprofileuuid."
- Select the business object "SocialMediaUserProfile."
- Add the field UUID/content to the OData service.
- Assign the work center view "SEOD_SMA_SADL_WCVIEW."
- Activate the OData service.
- Now we are able to get the UUID of a specific social media user profile.
See Also
Keywords
Social Media User Profile, SocialMediaUserProfileCollection, UUID, OData , KBA , LOD-CRM-INT-API , OData API (C4C Only) , LOD-CRM-SC-SM , Social Media , Problem