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.
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:
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.
Is this approach possible using a custom service? And if so, what’s the recommended way to return multiple records in the response?
Abhilash Warrier
565
Martin Dráb
536
Most Valuable Professional
André Arnaud de Cal...
402
Super User 2025 Season 1