Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

How to get the environment name for the Business Central trial account?

Posted on by 16
Is there any way to call the API without the environment name or the environment name is production or sandbox by default?
How to find the environment name in the Dynamics 365 Business Central trial account?
 
API:
https:/api.businesscentral.dynamics.com/v2.0/{{tenant}}/{{environment}}/api/v2.0/companies
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 9,676 Most Valuable Professional on at
    How to get the environment name for the Business Central trial account?
    HI
    In this location you will find the name of the environment and the name of the tenant, I hope it helps you.
    Best Regards
    Gerardo
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,023 Moderator on at
    How to get the environment name for the Business Central trial account?
    Hi,
    The environment name is a required part of the URL path for API calls to ensure that the request is routed to the correct data environment.
    when you create a new Business Central online tenant, you get a production environment. Its name is often "Production", but the actual name can be confirmed in the Business Central admin center.
     
    If you have access to the Business Central Administration Shell, you can use PowerShell commands to list all environments and their details, including the environment name.
     
    Get-BCEnvironment -TenantId <YourTenantId>
     
    Thanks
    Nitin
     
     

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,556 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,625 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans