This article will guide you through exposing data in BC Public Cloud so AGR can extract it from your system.
If this task is being handled by a Business Central (BC) Partner, Steps 1, 2 and 3 can be skipped, as they will manage these actions on your behalf. Share the newly created API endpoint with AGR (Step 4).
1. Create BC Public Cloud Query object.
First you need to create an API Query that queries the data we need to expose. To create queries follow this document Query object - Business Central.
2. Publish a API Web Service
Create a new web service with the object type of Query to expose the Query created in step 1. To publish Web Services you can follow this document Publish a Web Service - Business Central.
IMPORTANT: All new endpoints created should follow the same base URL as all the other standard endpoints we fetch.
https://api.businesscentral.dynamics.com/v2.0/{BCTenantID}/Production/ODataV4/Company('{Company Name}')/{endpoint name}
3. Add permissions so AGR can access the new webservice.
Either add the new Query webservice to the existing Permission Set or create a new Permission set and add it to the AGR Authentication user.
4. Share the newly created API endpoint with AGR.