Question

DCM stage role back

Hi All,

I have DCM in Lead and I want to be able to delete activity where DCM stage is modified to qualification.  Please, find attached the business process but it does not delete from activity when Lead DCM = Qualification.

Any advise will be highly appreciated.

Thanks 

File attachments

Like

2 comments

Dear Adebola,

If you want to make all activities connected to the lead be deleted when the status changes to Qualification, then the process will look a bit differently: 

If you want to delete just one specific activity connected to the lead, you need to add Read data element to choose one record from the selection.

Best regards,

Lily

Hi Lily,

Thank you for your quick response. I tried your recommendation but i still got this error;

System.InvalidOperationException: Item cannot be deleted because it is being used in a process.

   at Terrasoft.Core.Entities.Entity.CheckIfEntityUsedByProcess(Object keyValue)

   at Terrasoft.Core.Entities.Entity.Delete(Object keyValue)

   at Terrasoft.Core.Process.Configuration.DeleteDataUserTask.InternalExecute(ProcessExecutingContext context)

   at Terrasoft.Core.Process.ProcessActivity.Execute(ProcessExecutingContext context)

 

Theres is a process that moves the lead forward, if am going to move back to the previous stage, then i need to be able to prevent  the other process from running so as to be able to delete related activity when i move back on the lead stage.

Any suggestion on how to prevent the other process to run so as to be able to run another process that delete related activity.

Show all comments