Hello Experts,
I have trying to display approver name and approved date on my customized form and i an following this (Link) article. i write below code for displaying approver name.
display public server WorkflowApprovalName Displayapprovername() { WorkflowTrackingStatusTable workflowTrackingStatusTable; WorkflowTrackingTable WorkflowTrackingTable; WorkflowApprovalName approvername; select firstonly workflowtrackingstatustable join workflowtrackingtable where workflowtrackingstatustable.ContextRecId == this.recid && workflowtrackingtable.TrackingContext == workflowtrackingcontext::WorkItem && workflowtrackingtable.TrackingType == workflowtrackingtype::Approval && workflowtrackingtable.WorkflowTrackingStatusTable == workflowtrackingstatustable .recid; { approvername = workflowtrackingtable.User; return approvername; this.ApprovedByName=approvername; } }
But when creating a new record and approver approves it , nothing appearing in form field. can someone advise what is the issue or if i am making any mistake in the code.
Form Field.
Also i want to see the approver name in SSMS using SQL script. i am using below query and expecting USER column to display the approver name but using this query it shows the wrong names not the approver name. please advise how to see approver name in SQL.
select * from workflowtrackingstatustable wfs
join workflowtrackingtable wft
on wfs.ContextRecId = wft.recid and CONFIGURATIONNUMBER='000401'