Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Unable to create incident using WebApi.createRecord due to customer type field

(0) ShareShare
ReportReport
Posted on by

Hi Team,

I am not able to create the incident using webApi.createrecord due to customer type field. Request you please suggest how to bind customer type filed in mscrm when we set the this field using webApi.

find below the screenshot of field on i am getting issue-

pastedimage1622538551647v1.png

Below is the syntax which i am using to set the value of this field-

"CustomerId@odata.bind": "/contacts(5FB2DA1A-8C50-E911-A849-000D3A2DD1B4)",

Find below the response which i am getting when i am trying to create the record.

1: An error occurred while validating input parameters: Microsoft.OData.ODataException: An undeclared property 'CustomerId' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Unable to create incident using WebApi.createRecord due to customer type field

    Hello,

    Try to replace line

    "CustomerId@odata.bind": "/contacts(5FB2DA1A-8C50-E911-A849-000D3A2DD1B4)",

    with line

    "customerid_contact@odata.bind": "/contacts(5FB2DA1A-8C50-E911-A849-000D3A2DD1B4)",

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans