问题描述
MS Dynamics AX 2009:
MS Dynamics AX 2009:
我需要从采购订单屏幕执行此操作,因此我只有采购行表中的采购申请编号.
I need to do this from the Purchase Order Screen, so I only have the Purchase Requisition number available from the PurchLines Table.
非常感谢您的帮助,因为网络上还没有可用的内容(我可以找到)并且 AX 2009 教程中缺少类.
Your help would be really greatly appreciated as there is nothing yet on the net available (that I can find) and there are missing classes in the AX 2009 Tutorials.
所有有用的答案肯定会得到我的支持.
All helpful answers will definitely get an upvote from me.
目的是在采购订单屏幕上单击按钮时,强制现有工作流从提交"阶段重新执行采购申请.
Purpose is to force the existing workflow to re-execute on the Purchase Requisition from "Submitted" stage when a button is clicked on the Purchase Order Screen.
推荐答案
我找到了答案(代码),再次将其提交给工作流:
I found the answer (code) to submit it to the workflow again:
workflowCorrelationId = Workflow::activateFromWorkflowTemplate(workflowTemplateName,recId,note,NoYes::No,'userid');
workflowCorrelationId = Workflow::activateFromWorkflowTemplate(workflowTemplateName,recId,note,NoYes::No,'userid');
这篇关于如何在 X++ 中以编程方式将采购申请的工作流程状态从已完成重置为提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!