Tuesday, September 17, 2013

Opening MenuItem using X++

Opening MenuItem using X++

This is sample code through which i had Automated Workflow.
When purchase order gets created from Purchase Requisition.

Public void AutomateChangeRequest()
{
    //Modified by Ramanan
    MenuFunction    reqChange;
    Args            purchArgs;
    reqChange = new MenuFunction(menuitemActionStr(PurchRequestChange),MenuItemType::Action);
                    purchArgs = new Args();
                    purchArgs.record(purchTable);
                    reqChange.run(purchArgs);
}

By Calling this method in PurchAutoCreate class inside create method.

No comments:

Post a Comment

Beautiful Fish Tank