Question

I am working on an enterprise wiki site, and I know that when creating a new wiki page it goes through the following life cycle:-

  1. When a user clicks on add new page, and he enters the page title; a new empty wiki page will automatically be created, before adding any content.

  2. After adding the content to the rich text editor and click on save. The page got updated and it will have version number 3!.

The above scenario did not cause any problem to me (or I have to live with the fact that to create a new wiki page it will have version 3 automatically).

But now I created a new List Workflow inside SharePoint designer, and I specify to run the work flow automatically when an item is changed.

The problem i am facing is that when a user creates a new wiki page the workflow will run twice !! so can anyone advice ? Although I specify that the workflow should run when an item is changed.

Regards

Was it helpful?

Solution

It actually creates the file, then renames it in the first step. I would suggest building in an if statement that prevents it running the first time.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top