Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Issue in creating case through api

Posted on by 524

Method: POST

Request body

{
    
   "title" : "new case2",
  "customerid@odata.bind""/accounts(88cea450-cb0c-ea11-a813-000d3a1b1223)"
}
getting error "An undeclared property 'customerid' which only has property annotations in the payload but no property value was found in the payload."
  • Suggested answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: Issue in creating case through api

    Hi,

    Please check Navigation property as described below:

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/web-api-navigation-properties

    t
    ry with below code:

    {
        
       "title" : "new case2",
      "CustomerId@odata.bind": "/accounts(88cea450-cb0c-ea11-a813-000d3a1b1223)"
    }

    Thank You,
    Pradeep Rai.

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,065 Moderator on at
    RE: Issue in creating case through api

    Lookup fields use the navigation property and not the field name

    use my tool Dataverse REST Builder to generate the correct request

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans