Friday, January 24, 2014

Workflow Event hnadler in class of SalesCreditLimitApprovalEvent Handler Method : Returned

//Workflow Event hnadler in class of SalesCreditLimitApprovalEvent Handler
Method : Returned

public void returned(WorkflowElementEventArgs _workflowElementEventArgs)
{
SalesTable SalesTable;
ttsbegin;
select forupdate SalesTable
where SalesTable.RecId ==_workflowElementEventArgs.parmWorkflowContext().parmRecId();
SalesTable.CreditLimitApprovalStatus = SalesCreditLimitApprovalStatus::Rejected;
SalesTable.update();
ttscommit;
}

No comments:

Post a Comment

Convert Call stack to readable format in D365FO X++

//Input --container _xppCallStack = xSession::xppCallStack();  Public static str POL_formatXppCallStack(container _xppCallStack, int _skipFr...