Is there a way we can fetch customer template or general business posting group or customer group through api
Hi, The method mentioned by Rahul is relatively simple.
It just so happens that I tested the API and just added an example.
https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Sandbox220/ODataV4/Company('My Company')/GenBPG
Hope this helps as well.
Thanks.
ZHU
Do you have access to BC? If not, you can request the execution of below steps from someone who does
learn.microsoft.com/.../across-how-publish-web-service
Follow the above link and create a web service for below pages. You'll then find a ODATA/SOAP URL to be used as an endpoint in your API call
Page No 312
Page No 110
Page No 1382
Yeah I want to fetch all the Gen Bus Posting Groups / Cust. POsting groups and also the all the cusotmer template existing in BC for that companies.
Hi Ashish - These 2 fields are attached on each customer record. Are you willing to fetch each customer's Gen Bus Posting Group &/or Customer posting group?
Or do you want to fetch all Gen Bus Posting Groups / Cust. POsting groups existing in BC?
I had researched on the learn.microsoft.com/.../ but could not find which endpoint will give the result.
Can you please guide me from which endpoint we can access the these three endpoints
Yes, it's possible to fetch customer templates, general business posting groups, and customer groups through the Dynamics 365 Business Central API.
You can use the Customer Templates, Gen. Business Posting Groups, and Customer Groups APIs to retrieve the relevant information. These APIs can be accessed using various programming languages, such as C#, Python, and JavaScript, to name a few.
To access these APIs, you will need to have the necessary credentials and permissions. Additionally, it's important to ensure that your application meets the security requirements set by Microsoft.
If you need further assistance with using the Dynamics 365 Business Central API, Microsoft offers various resources, such as documentation and developer support, to help you get started.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156