web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Business Central forum

Entity does not support insert

(0) ShareShare
ReportReport
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 

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional 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?

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

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

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

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

    Thank you

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

    Hello.

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

    Best regards

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Entity does not support insert

    Simply set editable = true property in the exposed page.

  • Unity Profile Picture
    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
    37,166 Most Valuable Professional 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.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional 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).

  • Unity Profile Picture
    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


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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans