web
You’re offline. This is a read only version of the page.
close
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.

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 45 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans