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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Credit Remaining value of credit limit of specific customer

(0) ShareShare
ReportReport
Posted on by

I am working with B2B ecommerce channel data integration between D365 FO and Ecommerce Channel like Magento.

Where i need pull out customer credit remaining of credit limit of specific customer  from D365 FO to Magento.

Note: i am using the integration pattern is Odata API with Data Entities.

Since , Credit Remaining value is a calculated uisng temp table of type in memory i can not use data entity creation. 

Is there any other way we could read this information and push to the external system using Odata API ?

I have the same question (0)
  • Suggested answer
    Suresh M. Parmar Profile Picture
    340 on at

    Hello Pravin,

    You are right, there is no table to store the remaining credit limits for customers.

    you can create the virtual field into the entity which will capture the remaining credit limit.

    Logic will be like,

    Remaining credit limit = Total customer credit limit - Sum of customer transactions amount

    How to create virtual fields in entities 

    Thanks,

    Suresh Parmar

  • Community Member Profile Picture
    on at

    Hello Suresh,

    Thanks for the update.

    one quick question is where should i create this virtual field i mean which data entity ?

    should i create new one if so , what would be my data source for it ?

  • Suggested answer
    Suresh M. Parmar Profile Picture
    340 on at

    Hello Pravin,

    You can create a new entity(use CustTable as primary data source) or need to create an extension of the entity and a new virtual field in an entity that is you are using for integration(i.e., customer entity).

    Thanks,

    Suresh Parmar

  • Community Member Profile Picture
    on at

    Hello Suresh,

    Thanks for the update, let me check and confirm

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello Suresh,

    Thanks for the suggestions for the approach it works for me.

    please find the detailed steps what have done and which worked for me.

    1) Create new virtual field on custcustomer entity.

    2)override the post load method and assign credit remaining field value to virtual field.

    please find the post load method code after super()

    while select custTable

               where custTable.AccountNum == this.CustomerAccount

           {

               CustCreditLimit custCreditLimit =new CustCreditLimit(custTable);

               AmountMST availableCreditBalanace = custCreditLimit.calcCreditAvailable();

               this.(use Vitualfield which is created) = availableCreditBalanace;

           }

  • SimonaSSS Profile Picture
    20 on at

    If you have problems getting a loan, then I advise you to first check the Credit Score rating https://scobooster.com/. Then it will be possible to understand the cause and, if necessary, improve it. And then you can easily get money.

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 159 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 105 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 102 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans