Hi,
I am trying to create a phone call entity which in itself is working fine but when I am trying to populate a from and to field which is I believe Activity type Its not working. I am using REST API to create record.
Here is my request and response, please help:
{
"subject":"testxx",
"mafs_callactivitytype":449590016,
"mafs_calloutcome":449590008,
"regardingobjectid_contact_phonecall@odata.bind":"/contacts(CE6B7F14-E3F3-4711-92BF-754597712ED2)",
"mafs_Solicitation_PhoneCall@odata.bind": "/mafs_solicitations(885D7B2A-6FE4-E711-8171-E0071B675C91)",
"phonecall_activity_parties": [
{
"partyid_systemuser@odata.bind" : "/teams(D710C504-0CC8-E711-816D-E0071B675C91)",
"participationtypemask" : 1
},
{
"partyid_contact@odata.bind":"/contacts(CE6B7F14-E3F3-4711-92BF-754597712ED2)",
"participationtypemask" : 2
}
],
"directioncode":true
}
And the response I received
{
"errorSource": "Dynamics 365",
"errorCode": "remote",
"errorMessage": "A 'PrimitiveValue' node with non-null value was found when trying to read the value of the navigation property 'phonecall_activity_parties'; however, a 'StartArray' node, a 'StartObject' node, or a 'PrimitiveValue' node with null value was expected. [HTTP/1.1 400 Bad Request]",
"errorDetail": "Dynamics 365 processing error"
}
*This post is locked for comments