Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
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,081 Super User 2024 Season 1 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

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans