Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 130240

Forum Post: RE: curUserID() in Workflow

$
0
0

Below code fetches the user id’s who approved the PO workflow.

select firstonly workflowtrackingstatustable

join workflowtrackingtable

where workflowtrackingstatustable .ContextRecId == purchtable.recid

&& workflowtrackingtable.TrackingContext == workflowtrackingcontext::WorkItem

&& workflowtrackingtable.TrackingType == workflowtrackingtype::Approval

&& workflowtrackingtable.WorkflowTrackingStatusTable == workflowtrackingstatustable .recid;

{

approvername = workflowtrackingtable.User;

}

Regards


Viewing all articles
Browse latest Browse all 130240

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>