Notifications
Announcements
Hello everyone,
I'm working on a requirement where we need to send SMS messages to customers exposing their phone number and current balance.
To achieve this, I would like to expose the data via OData, and I’m looking for a standard data entity (if available) that includes:
Customer account number (Customer ID)
Current balance (open balance or total due amount)
I’ve checked entities like CustomerV3 to get the customer contact info, but I’m not sure which one (if any) provides a reliable real-time customer balance.
CustomerV3
Is there a standard entity that contains this data? Or do I need to create a custom entity?
Any guidance or suggestions would be appreciated.
Thanks in advance!
Thank u all for help
I'm looking for a way to expose customer balance data in JSON or XML format without creating a new data entity beacause as I can see there's no clear entity that have the a the balance for each customer.
So I move on to develop a custom service that returns a list of customers with the following fields:
Name
Phone
Balance
Only customers with a non-zero balance should be included.
The expected response format should be something like:
[ { "AccountNum": "US-001", "Name": "Contoso Ltd", "Phone": "+123456789", "Balance": 1200.50 }, { "AccountNum": "US-002", "Name": "Contoso Ltd1", "Phone": "+123456780", "Balance": 200 } ]
I initially thought that custom services in D365FO were mainly used to receive external requests (like POST/GET into FO). But in this case, I want to expose a custom GET API that allows external systems to retrieve this list as a full JSON array.
I also want to avoid using the CustTrans entity because of the data volume — I’m only interested in summarizing the balance per customer, not detailed transactions.
CustTrans
Is this approach possible using a custom service? And if so, what’s the recommended way to return multiple records in the response?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 678 Super User 2025 Season 2
André Arnaud de Cal... 394 Super User 2025 Season 2
Martin Dráb 281 Most Valuable Professional