Dynamics CRM Detect if Delete Message is Cascade Delete -


I have a custom workflow activity that runs when a custom unit is deleted.
I have to find out whether the message is to delete a fundamental deletion or remove the cascade from the parent unit (originality).

I have found that even when a waterfall is removed, the original unit is in existence.

What can I find out and see if the result of the removal is to remove the cascade?

I need to get this information because the parent unit is updating the unit when it is removed - it should be removed only when there is no result of deletion, otherwise there is a SQL error. It is probably due to the fact that the workflow is trying to update the records being removed in the transaction.

Edit

Tanguy T, but it was not resolved.

I believe you can see the ParentContext member of the workflow context. If this is empty or the message of the parent is not equal to the removal - this means that it is not to remove the cascade. Check it out.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -