Question
Evoke Technologies
IN
Last activity: 22 May 2017 11:24 EDT
How can I confirm if an assignment is COMPLETED by a user?
Hi,
I need to get a list of assignments completed by any user at a given day.
I am using Declare Trigger with Committed Delete on Assign- Class (with an understanding that everytime an assignment is completed it gets deleted from the assign table as per our system purging mechanism).
However, the issue is Assignments gets deleted also in case of transfer or reassign- for instance when a user picks an assignment from a WB- the assignment gets deleted from Assign-Workbasket and is added to Assign--Worklist; also in case of Screen Flows where back to back assignments are created and deleted for user.
How can I filter out such cases so that I only have assignments ACTUALLY COMPLETED by the user. I have tried to look out for properties that store the value for the Action Label on newAssignPage- whether it was a Transfer, or Completion, or Reassign etc- but couldnot.
One way could be to see if the status of the case has changed. In our application, if for an Assignment AssignedOperatorID and Status both changes- it means an assignment is completed. (But again, this solution might be an issue in case of Spin Offs, also am unsure how can I track this).
Thank you for your help,
Bhagyashree