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

Announcements

No record found.

News and Announcements icon
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,677 Super User 2026 Season 1 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,677 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans