To call BC365 API, we need to call get token API, then use this token for other APIs.
This is get token API:
https://login.microsoftonline.com/xxx/oauth2/v2.0/token
And the payload will include client_id, scope, grant_type, client_secret
Then use token in response as Bearer token for main api, example with Item:
https://api.businesscentral.dynamics.com/v2.0/xxx/Sandbox/ODataV4/Company('aa')/Items
There will be a concern about API Method, if you want to update an existing Item in BC, we need to send PATCH method and include item_no in url:
All this can be configurable in AllSync with few steps:
- Create new application "BC365"
- Create new table for product master
- Create the integration flow to send item to BC