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
( 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:
Keywords
SocialMediaUserProfile , KBA , LOD-CRM-ACC-SUP , Social Media User Profile , Problem