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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Error when developing a custom API

(1) ShareShare
ReportReport
Posted on by 69
Goodafternoon,
 
I'm learning how to create a custom API for Business Central.
For this i'm using this guide by Microsoft, it all goes OK and runs without debugging.
However when I run the first POST request via Postman i receive the error as shown at the bottom (in postman).
I think it's an issue with the permissions but can't figure out how to solve it, i've created a permission set that gives full access to both tables and assigned it to my user.
 
Thanks in advance for your help.
 
{
    "error": {
        "code": "Internal_ServerError",
        "message": "Sorry, the current permissions prevented the action. (TableData 50100 Car Brand Insert: ALProject3)  CorrelationId:  8aaa02c2-3766-438d-a065-03f89e3c7."
    }
}
 
 
I have the same question (0)
  • Jan de Mul Profile Picture
    69 on at
    There's no error when sending the GET request
  • Aymen CHELBI Profile Picture
    574 on at
    Hello, 
     
    I suggest you check the following points below :
     
    1. Permission Set: Ensure that your custom permission set includes Insert, Modify, Delete, and Read for TableData 50100 Car Brand.

    2. API Category & Publishing: If your API is not correctly categorized or published, it may not be accessible. Verify that it's properly exposed.

    3. OAuth & Authentication: Ensure that your Postman request is authenticated correctly with an OAuth token that has the necessary permissions.

    4. Environment Restart: Sometimes, permission changes don’t take effect immediately. Try restarting Business Central or reassigning the permission set.

    If you've already done all of this, can you share your API page and permission set definitions? That might help pinpoint the issue.

     

    Best regards,

  • Suggested answer
    Steven Renders Profile Picture
    5,672 Moderator on at
    Add a permissionset to your app:
  • Gerardo Rentería García Profile Picture
    25,225 Most Valuable Professional on at
    Hi
    Please review this section, add your extension's permission. 
    Best
    GR
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,439 Super User 2025 Season 2 on at
    Generate permission set for the specific extension and then assign that extension into permission sets in Microsoft entra application page. 
  • Verified answer
    Khushbu Rajvi. Profile Picture
    20,439 Super User 2025 Season 2 on at
    Generate permission set:
    Assign extension into the permission set
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,785

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,007 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 948 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans