web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Fetch Customer Template, General Business Posting Group and Customer Posting Group via api

(0) ShareShare
ReportReport
Posted on by 50

Is there a way we can fetch customer template or general business posting group or customer group through api 

I have the same question (1)
  • Suggested answer
    Shawnsauve Profile Picture
    1,100 on at

    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.

  • Ashish Profile Picture
    50 on at

    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

  • NAV_with_Narang Profile Picture
    2,390 Moderator on at

    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?

  • Ashish Profile Picture
    50 on at

    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.

  • Suggested answer
    NAV_with_Narang Profile Picture
    2,390 Moderator on at

    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

  • Suggested answer
    YUN ZHU Profile Picture
    102,361 Super User 2026 Season 1 on at

    Hi, The method mentioned by Rahul is relatively simple.

    It just so happens that I tested the API and just added an example.

    pastedimage1681171375502v1.png

    pastedimage1681171402820v2.png

    https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Sandbox220/ODataV4/Company('My Company')/GenBPG

    pastedimage1681171436911v3.png

    Hope this helps as well.

    Thanks.

    ZHU

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 647 Super User 2026 Season 1

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 447 Most Valuable Professional

#3
YUN ZHU Profile Picture

YUN ZHU 366 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans