WorkFlow-Approval Record. Old Approval record is deleting by itslef
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2024 02:56 PM
I was Investigating on a scenario- There is an UI action on form view of a record, when user clicks on the UI Button, a workflow will be triggered (Workflow Editor). And an approval record will be created and this record is shown under the form related lists "Approvals" tab.
1. When the Record is approved then it is updating every thing accurately, which means functionality is working as designed through UI Action and workflow
2. When again, UI Action is clicked to perform the action. Then workflow is triggering and creating the approval record. But Observation here is under related list "Approvals" Tab the previous approval record which is approved is no longer there, the new approval record is created which is the result of clicking the UI Button second time.
My Question : Is this the OOB behavior for Workflow Editors having only one approval record related to that process workflow which is the recent one. Or is there a way to have all the approval records one by one to show using workflow editor ??
Can anyone please share the information/knowledge on this.
Thanks,
siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 12:59 AM
Can you share your code? It looks like you are moving the same record into approval after approval state? Not sure why you would want to do this. Why not add other approval steps into the workflow with a 'wait for approval' step to create the next approval record and only after they are all done, approve the record.
Also: has the 1st record really been deleted, or is it still in the approval table?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark