Skip to main content
Business Central forum
Answered

Trying to create customers using ODATAV4 Endpoints

editSubscribe (1) ShareShare
ReportReport
Posted on by 17
I am trying to create customers usinf ODATAV4 and here is the web service URL I am having
 
 
And from my code I am hitting the URL using POST method and trying to create customer data
 
 
 
Post JSON :{id : UUID , displayName : 'Test'}
 
but I am getting error as like below
 
{
/error/: {
/code/: /BadRequest/,
/message/: /The property 'displayName' does not exist on type 'NAV.Customers'. Make sure to only use property names that are defined by the type. CorrelationId: d6440cdd-3d5a-49dc-9cba-ffe595c2c35b./
}
}
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 59,978 Super User on at
    Trying to create customers using ODATAV4 Endpoints
    Hi, as shown below, there is no displayName field, only Name field. Please try it first.
     
    Hope this helps.
    Thanks.
    ZHU
  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 45,237 Super User on at
    Trying to create customers using ODATAV4 Endpoints
    1. You published page 22 which list type and does not support insertion so please use page 21
    2. You can use GET first to check what fields are available and use then. You can try Name instead of displayName
  • gdrenteria Profile Picture
    gdrenteria 2,716 Super User on at
    Trying to create customers using ODATAV4 Endpoints

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,066 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,585 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans