Not able to create a sales cloud lead from oracle service cloud
Content
Hi,
We couldn't create the lead from service cloud to sale cloud. We are getting the error message as below;
"oracle.adf.internal.model.rest.core.exception.CannotParseContentException:
The content type is not a ADFm REST entity. Content-Type: text/xml"
The code block is,
public void CreateContact()
{
String input = "{ \"Name\": \"ffff\" }";
var request = new RestRequest(Method.POST)
{
Resource = string.Format("leads")
};
//string json = JsonConvert.SerializeObject(input);
request.JsonSerializer.ContentType = "application/json; charset=UTF-32;";
request.AddHeader("Content-Type", "application/json; charset=UTF-32;");
request.AddBody(input);
var response = _client.Execute(request);
}
Thanks,
Sriranjjani