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 :
Microsoft Dynamics AX (Archived)

how to get the method that change quotation status from created to sent in Project quotation form AX 2012

(0) ShareShare
ReportReport
Posted on by 10,280

plz somebody help me

*This post is locked for comments

I have the same question (0)
  • David Massey Profile Picture
    Microsoft Employee on at

    For Project quotations, workflow must be configured and activated. Once the quotation is approved, it can be marked as to "Sent" to customer/prospect. Setting the quotation to approved state without using workflow is not supported.

  • Suggested answer
    Sohaib Cheema Profile Picture
    49,668 Super User 2026 Season 2 on at

    I agree to what David Massey has said above.

    In addition I would like to mention following

    1. If you are using Project3 Configuration Key, you have no way to skip Quotation Workflow (This is Behavior of Standard AX). So workflow classes are responsible for changing status of quotation
    2. If you want to Use Project3 Configuration key, But on other hand you don't want to use workflow, i.e. you want to avoid usage of Standard AX, that is also POSSIBLE with a very minor change using Customization.

  • Codehunter Profile Picture
    10,280 on at

    i need to set the status "sent " if i change certain control value ;otherwise,i need it to set the status "Revised"

  • Suggested answer
    Sohaib Cheema Profile Picture
    49,668 Super User 2026 Season 2 on at

    PSAProjQuotationStateChangeManager (class) is responsible to change status of Quotation in  case you are using Workflow.

  • Codehunter Profile Picture
    10,280 on at

    i know but how to change it in case of modified one control

  • David Massey Profile Picture
    Microsoft Employee on at

    Revised is not intended for value change of a control.  It is a document state.  The process flow for entering this state is that the quote has been sent to a customer (Once sent to a customer the quotation can not be edited). After the quote has been sent, the document needs to be edited (Proposal change, Requested work changed, etc.). There is an explicit action (button) to set the document into the Revised state. This allows editing of the quotation and forces the workflow process to be started again.

  • Sohaib Cheema Profile Picture
    49,668 Super User 2026 Season 2 on at

    Forcefully you can do anything 'On changing value of any control' or 'On modified field of any field'.

    But that would not be appropriate.

    I cannot understand your issue. Can you please explain what you really looking for. From start of thread till yet no idea what you want to do. Please elaborate

  • Codehunter Profile Picture
    10,280 on at

    I need to stop changing its type sent to revised in case certain control has been selected.

  • Suggested answer
    Sohaib Cheema Profile Picture
    49,668 Super User 2026 Season 2 on at

    you can write your code in class which is responsible for changing status of Workflow i.e.

    PSAProjQuotationStateChangeManager (Class) updateStatus (method)

    static void updateStatus (RecId _salesQuotationRecId, SalesQuotationStatus _status)
    {
        SalesQuotationTable salesQuotationTable;
    
        ;
    
        select forupdate salesQuotationTable where
            salesQuotationTable.RecId == _salesQuotationRecId;
    
        if (salesQuotationTable)
        {
            salesQuotationTable.QuotationStatus = _status;
            if(salesQuotationTable.QuotationStatus != SalesQuotationStatus::Revised)
            {
                salesQuotationTable.update();
            }
            else
            {
                if(!ConditionOfYourControl)
                {
                    salesQuotationTable.update();
                }
            }
        }
    
    }

    if you don't want to modify your workflow classes a shortcut could be writing your code in update(method) of SalesQuotationTable and prevent there from updating status to revised.

  • David Massey Profile Picture
    Microsoft Employee on at

    I should have started the discussion with the question What version of Ax 2012 are you using?.   This functionality has changed between AX 2012 RTM and AX 2012 R3.  In R3 you can not modify a quotation once has been Sent unless the user set the document state to Revised for editing.  There are some KBs to earlier versions around editing a quotation which was sent that update the document to Modified state.

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

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans