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...
Suggested Answer

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

(1) ShareShare
ReportReport
Posted on by 208
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,217 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,698 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

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,990

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,028 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans