Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

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

Posted on by Microsoft Employee

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
    a33ik 84,323 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans