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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Force Sales Order to Credit Management Hold

(3) ShareShare
ReportReport
Posted on by 733
Hi Guys,
 
I need to force through code the sales order credit management hold after inserting (I'm doing through CoC but that's not the problem). Looking classes about credit control, I found CredManCreditControl class; the problem is the class is abstract and It can't calls its methods.
 
Somebody can help me please to do it?
 
[ExtensionOf(classStr(SalesTableType))]
final class SalesTableType_AR_Extension
{
    void inserting()
    {
        SalesTable      salesTable;
        SalesTableType  salesTableType;
 
        next inserting();
 
        salesTableType = this;
        salesTable = salesTableType.parmSalesTable();
 
        if (salesTable.SalesId)
        {                       
            //Here force to credit management hold
        }
    }
}
Categories:
I have the same question (0)
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi,
     
    There are many classes extendCredManCreditControl, based on your case you can call the methods that you want (public and protected) methods for the child classes
     
     
     
     
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

  • Israel Gonzalez Profile Picture
    733 on at
    Hi Waed thanks for reply,
     
    That class can't be instanced.
     
  • Verified answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi,
     
    Yes, you are right the construct method is private. Try to use the following class :
     

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans