Hi
I am using an installed plugin to force calculation of a roll up field on the parent entity as described here
The problem I have is that when a child record is deleted the roll up field is not re-calculated. Or it may be re-calculated but gives the wrong value. I have selected the option to trigger the workflow when a record is deleted, but it is only the only one available is before so I am assuming this is the problem? We are using Dynamis 365 On-premises.
Thanks
Teresa
*This post is locked for comments
Great. Please mark the suggestion as helpful if it helped you :)
Thanks Ravi, as a work around for the moment I have stop users from deleting records, they can inactivate them.
It doesn't look like the one Teresa got from Git would help. Will need to ask the author if post Delete is supported or not. Else, you'll have to write your own plugin to do so.
Hi Teresa,
Your assumption makes sense. The workflow on delete even triggers before the actual delete happens so it is possible that the calculation is correct but it is not calculating after the delete. I think for delete, you will have to write some custom plugin as workflow can't be triggered after delete.
I haven't tried this but in the below thread it is mentioned that executing the workflow in the background can help in this case. You can try this. I would suggest you to write a different workflow instead of changing this workflow to background.
community.dynamics.com/.../157499
Hope this helps.
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156