Multi-level approval history

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 11:27 AM
I am working on a purchase request workflow. It has a complex set of approvals (first approval to manager, second approval to manager's manager, etc but it does this dynamically based on the cost of purchase and the submitter's/manager's level of approval). When I test it and approve at each level, the only approval record that exists is the latest one. We want to be able to see all the people who approved it along the way. When I look at the sysapproval_approver table, the only record that exists there is the last one as well. The history of that record doesn't show any changes to the approver field, so then I checked Deleted records and see that the prior approval was deleted. Why is that happening and how do I fix it? Here's a snippet of the workflow, in case that helps...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 01:18 PM
Maybe you can provide the full workflow? Don't see anything in your snippet that would cause this problem.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 06:12 PM
Hello,
Are you utilizing a single approval activity and looping through it to generate different levels of approval?
If you are using a single activity, the approval record is going to get overridden, the workflow removes the old record and creates a new one; it happens with tasks as well, if you use a single task activity in a loop, it ends up generating just one task. That is the workflow behaviour.
To resolve this:
- You will need to create separate branching and separate approval activities for each level of approval (decided based on IF conditions)
OR
- Another way could be having scripts to generate the approval records, and then wait for condition (with scripts) to check if the approvals are done and then proceed.
Hope this helps!
Cheers,
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2023 12:36 PM
Hi
Have you find the solution for this?
@Manish Vinayak1 solution not worked for me as there are no predefined number of approval levels its based not diffrent parameters and user inputs
The second solution worked actually but its not showing the stage of RITM correctly its missing approvers name and just a waiting for approval string