As you know when we close an incident, the dynamics crm365 cancel all related activities with a warning message : there are some open activities related to this incident.
I want to complete all of them instead of canceling them.
I have do some work with a real-time workflow. The workflow complete related activity of an incident when the activity status change to cancel. It's trigger is on changing status of the activity( when it goes to cancel ); and also check the status of incident.
But i do not want to do this via a real-time workflow.
Is there any other way like plugin? If yes in which message should I register the plugin? And what would be the logic of the plugin?
Thanks