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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Permissions question using beta api

(0) ShareShare
ReportReport
Posted on by

New to BC. Using the beta api, postman, and basic auth, I can list items or an item. When I try adding an item I get this error:

{
"error": {
"code": "Internal_ServerError",
"message": "You do not have the following permissions on TableData Item: Insert"
}
}

Since I'm the one and only user and have confirmed that I have SUPER role and insert permission on all tables and tabledata, why do I get this result and how do I fix it?

I'm using the Cronus db for testing and basically the JSON I get from getting an item (the sample JSON body given in the documentation gives an invalid body error, while the one below passes that test).

Here's the post url: https://api.businesscentral.dynamics.com/v1.0/ceonex.onmicrosoft.com/api/beta/companies(b24ee78a-4605-476d-a692-f5ddee4b2285)/items

and here's the json:

{
"number": "2000-R",
"displayName": "Conference Bundle 1-8",
"type": "Inventory",
"blocked": false,
"baseUnitOfMeasureId": "6991df40-3ddc-4156-9b68-74ea4934002f",
"gtin": "",
"inventory": 0,
"unitPrice": 233.8,
"priceIncludesTax": false,
"unitCost": 0,
"taxGroupId": "00000000-0000-0000-0000-000000000000",
"taxGroupCode": "FURNITURE",
"baseUnitOfMeasure": {
"code": "PCS",
"displayName": "Piece",
"symbol": null,
"unitConversion": null
}
}

Categories:
I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Never mind, was a license issue. I applied the "premium" licence we bought a couple of days ago to a new SUPER user and using that account worked.

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