SAP Knowledge Base Article - Public

2846392 - Creation of new SocialMediaUserProfile Using oData Service Fails

Symptom

Unable to create Social Media profile using oData Service.

Reproducing the Issue

URL 1:https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/SocialMediaUserProfileCollection

URL 2:https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/socialmediauserprofile/SocialMediaUserProfileCollection

( where XXXXXX is Customer Tenant ID)

 Use Payload:

{

"SocialMediaUserCategoryCode": "01",

"ID": "",

"AccountUUID": ""

}

 

Below payload also gives the same error.

{

"SocialMediaUserCategoryCode": "01",

"ID": "",

"AccountInternalID": ""

}

 

The Account UUID is an existing Account. From the ODATA call to IndividualCustomerCollection, you can see that it already exist, so C4C should not be creating new account.

 

<d:ObjectID></d:ObjectID>

<d:CustomerID></d:CustomerID>

<d:UUID></d:UUID>

Error:

<message xml:lang="en">A customer account cannot be created without any information. Please enter at least a last name before saving your entries.</message>

Resolution

You can use below Payload:

{
"SocialMediaUserCategoryCode":"02",
"SocialMediaUserProfileUserInformation":[{
"SocialMediaChannelCode":"001", "(001-Facebook,002-Twitter,etc.)
"ExternalPartyAccountID": Channel ID, "(Social Media channel ID),
"SocialMediaUserAccountID":Social account, "(the account id of Facebook user, *
"SocialMediaUserName":Social Nickname (Nickname of Facebook user, *
}],
"SocialMediaUserProfileBupaReference":[{
"BusinessPartnerCategoryCode":"1",
"BusinessPartnerRoleCode":"CRM000", (CRM000- individual customer)
"BusinessPartnerUUID":Individual customer's ObjectID
}]
}

Help portal of the Odata service:

https://help.sap.com/doc/d0f9ba822c08405da7d88174b304df84/1908/en-US/index.html#/topic/SocialMediaUserProfile

Keywords

SocialMediaUserProfile , KBA , LOD-CRM-ACC-SUP , Social Media User Profile , Problem

Product

SAP Cloud for Customer core applications 1908