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

Error while get and post using custom api and custom pages and tables

(1) ShareShare
ReportReport
Posted on by 259
Hello,
I’ve developed a custom API along with custom pages and tables. However, when attempting to post data, I encounter an error related to permissions, even though I’ve assigned the necessary permission set.
Could you please provide more details about the specific error message you’re receiving? Additionally, any relevant context or steps you’ve taken so far would be helpful for further investigation.
 
 
I have the same question (0)
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,547 Most Valuable Professional on at
    Hi
     
    Excuse me, have you created an API type page?
    I mention this because following the following link, apparently the call is not appropriate. I hope it can give you some ideas.
     
     
    POST https://api.businesscentral.dynamics.com/v2.0/<environmentName>/api/bctech/demo/v1.0/companies(<company id>)/carBrands
    {
        "name": "CARBRAND1",
        "description": "Car Brand 1",
        "country": "Italy"
    }
    Best regards
    Gerardo
  • Suggested answer
    Nitin Verma Profile Picture
    21,788 Moderator on at
    If you accessing your API outside the environment you need to go with Authorization, you can create OAuth2.0 authorization with this link  https://www.navwithnav.com/bc-oauth2-0-token-based-authentication/
     
    And then you also need to Add your app id in "Microsoft Entra application" page in BC, you can put the generated token in as a Bearer <Token>and try,
     
    I hope it will solve your problem.
     

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