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 :
Small and medium business | Business Central, N...
Suggested Answer

REST API, POST customer request failed

(0) ShareShare
ReportReport
Posted on by 8
I'm trying to create customer in business central using REST API with postman.
  1. I got token using OAuth2/Microsoft Entra Authentication.
  2. Dynamics 365 Business Central have /API.ReadWrite.All/ permission in azure portal.
  3. Client ID/Application have ADMINISTRATOR, D365 FULL ACCESS permission in Business Central -> Microsoft Entra Application
Get request to https:/api.businesscentral.dynamics.com/v2.0/tenantid/environmentname/api/v2.0/companies(id)/customers works fine but post request returns: 
400 Bad Request
{
    /error/: {
        /code/: /Internal_ServerError/,
        /message/: /Sorry, the current permissions prevented the action. (TableData 5050 Contact Insert: Base Application)  CorrelationId:  09bb1b44-5240-47d4-9e1e-55ea966ef3f9./
    }
}
What am I doing wrong? Where should I set required permissions?
I have the same question (0)
  • Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    Check the permissions associated to the app registration inside BC.
  • Suggested answer
    YUN ZHU Profile Picture
    98,345 Super User 2026 Season 1 on at
    Hi, It looks like you haven't assigned permissions to the MS Entra App.
    Hope the following can give you some hints.
     
    Thanks.
    ZHU
  • MG-04060224-0 Profile Picture
    8 on at
    Which Application ID should I use in Client ID part? For testing with postman and external, custom-made web.
  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Hi, please check the steps to set up service-to-service authentication:
  • Suggested answer
    Ariba Mehdi Profile Picture
    166 on at
    Hi,
    Try creating XML file that generates permission set. You can go to visual studio where the extension is open. Open command palette and select the following. The xml file will be created. Build the extension again and run it. 
     
    Hope this helps!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,986 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,071 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 975 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans