You are viewing limited content. For full access, please sign in.

Question

Question

accidentally deleted a workflow

asked on December 9, 2014

Hi All,

I've accidentally deleted a workflow. Is there a process to recover the workflow definition?

 

Tony

0 0

Replies

replied on December 9, 2014

Backups of the server?

Maybe from the instance history from when it last run you might be able to get it

0 0
replied on December 10, 2014

If it were me, I would set up a temp SQL and Workflow machine.  Restore the Workflow DB to the temp machine.  then export the lost Workflow to import into the production Workflow environment.

0 0
replied on December 11, 2014

You want to make sure the subscriber is stopped and all scheduled rules are disabled in this second installation of Workflow. Or just delete the repository registration to prevent it from starting workflows.

If all you want is the workflow definition, not the starting rules, you can get it directly from SQL (after you restored the backup) from the workflow_code table. Find the ID and version you want (the IDs are in the "workflow" table) and copy the contents of the designer_code cell. Paste it into Notepad and save with a .wfx extension.

1 0
replied on March 2, 2018

Is there a better way to do this yet? Can I restore the WF database as is without interfering with the existing installation just to copy from the workflow_code table?

0 0
replied on March 2, 2018

You can restore a copy of the database on the same SQL Server (with a different name).

1 0
replied on March 2, 2018

This worked really well today. I  was tentative about restoring to the same SQL server. So I restored to a test server, and it worked like a charm. Saved the day! Thanks Miruna!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.