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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

posting sales agreement using x++

(0) ShareShare
ReportReport
Posted on by

Hi, Is it possible and how hard would it be to to post confirmation of sales agreement (using SalesAgreementHeader instead of SalesTable)?

7077.code.png

I tried modifying this code so that it would use SalesAgreementHeader table, but nothing happened, there must be a lot of code underneath.

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,621 User Group Leader on at

    Hi,

    Try using any of following classes

    AgreementConfirm_Sales

    AgreementConfirm

  • Community Member Profile Picture
    on at

    Instead of SalesFormLetter or do you mean like somewhere additionally?

  • Verified answer
    Sohaib Cheema Profile Picture
    49,621 User Group Leader on at

    Allow me to paste, some rough code of lines, written quickly. You can explore more by yourself. These are Woking to confirm a sales agreement.

    SalesAgreementHeader    SalesAgreementHeader;
        AgreementConfirm_Sales  objAgreementConfirm_Sales;
        ;
    
        SalesAgreementHeader.clear();
        SalesAgreementHeader  = SalesAgreementHeader::findAgreementId('SAG-000002');
    
        objAgreementConfirm_Sales = AgreementConfirm_Sales::construct();
        objAgreementConfirm_Sales.parmAgreementHeader(SalesAgreementHeader);
        //<Eanbale any one of folliwng two lines of code.>
            //objAgreementConfirm_Sales.prompt();//<if you want prompt for user>
            //objAgreementConfirm_Sales.startConfirm();//<if you want silent confirmation without prompt, use only this line and comment previous line of code>
        //</Eanbale any of folliwng two lines of code.>
        info('Ok');
  • Community Member Profile Picture
    on at

    Thanks! This is exactly what I have been looking for :)

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 3

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Mea_ Profile Picture

Mea_ 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans