21 Feb’19

D365 Business CentralUse of Automation APIs to create new companies and view existing in Business Central

Introduction:

Automation APIs provide capability for automating company setup through APIs. Here we are going to use the Automation APIs to create a new company in the Microsoft Dynamics 365 Business Central and then view the existing companies information using the same.

Pre-requisites:

  1. Microsoft Dynamics 365 Business Central
  2. Postman

Steps:

1. Create a Company:
To create a company we make use of the automation Endpoint available. Here we create a post request in Postman which is in the following format:

POST https://api.businesscentral.dynamics.com/v1.0/api/microsoft/automation/{api version}/companies{company id}/automationCompanies

For this we make use of OAuth 2.0 Authorization(Bearer Token).

2. To View Information about existing Companies in Business Central

Retrieves the properties and relationships of an automationCompany object for Dynamics 365 Business Central. Here we use the GET request from Postman which has the following format:

GET

https://api.businesscentral.dynamics.com/v1.0/api/microsoft/automation/{api version}/companies{company id}/automationCompanies

For this we make use of OAuth 2.0 Authorization(Bearer Token).

Conclusion:

Thus, by making use of these existing Automation APIs we can automate the initial setup process of creating companies, packages, users, permission sets etc.

Written by

Dhruv Mehta

Trainee Software Engineer

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Expenses in PSA for Fixed Bid and T&M contracts

    23 August’ 2019

    Problem Definition: One of my clients decided to use Expense module in PSA and to his surprise he could see the amount v...

    Read more
  • Setup Dockers

    23 August’ 2019

    Docker is an independent container platform that enables organizations to seamlessly build, share and run any applicatio...

    Read more
  • Qualify Lead in D365 CE: Select which entity records should be created

    20 August’ 2019

    Wave 2019 Updates brought some really sought-after features. Another one which I would like to bring up is the Lead Qual...

    Read more
  • Early Opt-in for October 2019 Wave 2 Updates

    20 August’ 2019

    August 2, 2019 was when the Wave 2 Updates were to be out. And here we are! By now, you should have gotten the option to...

    Read more
  • Setting Unified Interface App Icons

    20 August’ 2019

    Default App Icons for typical D365 environment look like these.But here’s what you can do to change these to put...

    Read more
  • We respect your privacy.
  • This field is for validation purposes and should be left unchanged.