web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 51 Super User 2026 Season 1

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#3
Nagaraju_Matta Profile Picture

Nagaraju_Matta 50

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans