Skip to main content

My flow includes the option to re submit an infopath form. The Re submit button creates a new process instance with the updated data fields. Is it possible to delete the original submission's process instance? I only need the newest process instance to be available.


Thanks.

Hi mbotella,


I'm not sure exactly where you want to run the 'Delete' code from but you'll have to make use of the K2Mng object model.  The important thing is that you would not be able to delete a process instance from within itself.  You'll have to delete the old process instance from within the new process instance.  Have a look at the Help documentation on the K2Mng object model.


Hope this makes sense,


Ockert


Reply