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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 284 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 178 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 116 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans