static void addtoVirtualCompany(Args _args)
{
VirtualDataAreaList curlist, tocurlist;
select curlist where curlist.id == 'CNK';
buf2Buf(curlist,tocurlist);
tocurlist.id = 'TCLE';
tocurlist.insert();
info('done');*/
}
get workflow assign user name value
reference : https://community.dynamics.com/ax/f/33/t/245145
WorkflowTable workflowTable;
WorkflowVersionTable workflowVersionTable;
WorkflowElementTable workflowElementTable;
WorkflowStepTable workflowStepTable;
WorkflowAssignmentTable workflowAssignmentTable;
while select workflowAssignmentTable
join workflowStepTable
where workflowStepTable.RecId == workflowAssignmentTable.workflowStepTable
join workflowElementTable
where workflowElementTable.ElementId ==workflowStepTable.ElementId
join workflowVersionTable
where workflowVersionTable.ConfigurationId == workflowElementTable.ConfigurationId
&& workflowVersionTable.Enabled == NoYes::Yes
join workflowTable
where workflowTable.RecId == workflowVersionTable.workflowTable
&& workflowTable.DocumentTableName == "SalesQuotationTable"
{
info(strFmt("%1", workflowAssignmentTable.UserValue));
}
网友评论