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

Can't find companies in my Dynamics 365 Business Central

(1) ShareShare
ReportReport
Posted on by 2
I am trying to fetch the companies list using the below API end point :
https://api.businesscentral.dynamics.com/sandbox/api/v2.0/companies

But it showing be below Response:
{
    "error": {
        "code""RequestDataInvalid",
        "message""Request data is invalid."
    }
}

Steps I have followed:
1 Create a app resource in Microsoft Entra ID in Azure Portal
2 Create Secret
3 Assign API Permissions to my Dynamics 365 Business Central API
4 Using the below API I am creating my access token:
API Method: POST
Headers: "Content-Type" :"application/x-www-form-urlencoded"
Body:
"grant_type": "client_credentials"
"client_id": {client_id}
"client_secret": {client_secret}
"scope": "https://api.businesscentral.dynamics.com/.default"

 
  • Suggested answer
    gdrenteria Profile Picture
    15,504 Most Valuable Professional on at
    Can't find companies in my Dynamics 365 Business Central
  • Tech_BC_Gokul Profile Picture
    331 on at
    Can't find companies in my Dynamics 365 Business Central
     
    Please update the tenant id for the request and do the get method to return the result 
     
    Thanks
    Gokul

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,961 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,801 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans