Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

issue creating From and To fields in phone call entity via api

(0) ShareShare
ReportReport
Posted on by

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans