Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Entity does not support insert

Posted on by 145

I am using following API url to post the data in BC from postman- 

https://api.businesscentral.dynamics.com/v1.0/XXXXX/Sandbox/ODataV4/Company('CRONUS%20DE')/Kontakte

masked the XXXXX which was company guid

For GET call I am able to get List of all contact available in environment.

but for POST its throwing error- 

{

"error": {
"code": "BadRequest_MethodNotAllowed",
"message": "Entity does not support insert."

}

}

any help will be appreciated 

  • Unity Profile Picture
    Unity 10 on at
    RE: Entity does not support insert

    @Stefano

    Thanks for your prompt response!

    I am newbie in BC processing, can you share any useful link on how to set up the properties you mentioned?

    I want to post data to timesheet, Is that possible?

    api.businesscentral.dynamics.com/.../Time_Sheet_List


  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,152 on at
    RE: Entity does not support insert

    Or better: create a new page with the fields you need and use that page (more performant).

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,152 on at
    RE: Entity does not support insert

    If the page you have exposed as web service is Editable = false by default, you cannot insert records.

    You need to create a pageextension object and set editable = true property.

  • Unity Profile Picture
    Unity 10 on at
    RE: Entity does not support insert

    Can you please give more info in this where to set this property?

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,152 on at
    RE: Entity does not support insert

    Simply set editable = true property in the exposed page.

  • EniNavDeveloper Profile Picture
    EniNavDeveloper 5 on at
    RE: Entity does not support insert

    Hello.

    Maybe it's too late, but how did you solve this problem?

    Best regards

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Entity does not support insert

    hello ambesh,  How did you solve the problem? I have exactly the same error.

    Thank you

  • Ambesh Singh Profile Picture
    Ambesh Singh 145 on at
    RE: Entity does not support insert

    Thanks Stefano for quick response, my problem has been resolved.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,152 on at
    RE: Entity does not support insert

    Is this the Contact card or List Page publishes as web service? Is Insert enabled in that page?

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans