“Use of the WriteNow option in the Obj-Save ,Obj-Delete activity methods interferes with the PRPC transaction model and may result in stale database records. Consider allowing PRPC to commit the record when the transaction completes.”
I am using activity to delete Case. And Steps are:-
Hi @AbhishekC1725: If you select the checkbox Immediate in a Obj-Delete, you will have this guardrail warning. If you have a commit step, Immediate you can uncheck Immediate checkbox. Instead of Commit, please try to use commitWithErrorHandling if this is a Work- instance. If you are calling this as part of flow, you can ignore the commit too.
Hi @AbhishekC1725: Thanks. Then you can use commit / commitWithErrorHandling based on your class context. When using either of this, you can unselect Immediate option in Obj-Delete.