Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I had an odd request from a BA in my project. They have a sub site, and they only care about changes made to the landing page. Is it possible to have an approval workflow apply to only one page and not the whole library?

I should also add that custom code would be used if there was no alternative.

share|improve this question
    
does it need to start automatically when a major version is checked in? –  Ashish Patel Dec 15 '11 at 17:53
    
Just when the user presses submit for approval. –  John S Dec 15 '11 at 20:32
add comment

2 Answers 2

up vote 1 down vote accepted

The workflow would fire on every item, but you could always put some logic into the workflow so that the desired page is the only one it would execute the full logic.

Something as simple as a Yes/No field or choice field added to the metadata for the pages library would help. Any page you'd want to execute the workflow on you set to Yes. Then in the workflow logic, you'd do something like If column = Yes Do X Else End the workflow.

share|improve this answer
    
I have also come across such requirement a few times, is there any way to avoid the initiation form for items on which workflows do not execute full logic? –  Ashish Patel Dec 15 '11 at 17:56
    
You wouldn't use manually initiated workflows or workflows with initiation parameters for this, just use standard on creation/on edit workflows. –  PirateEric Dec 15 '11 at 17:58
add comment

You may be able to achieve this by creating a new content type for the landing page, and attaching the workflow to just that content type, not the pages library itself

share|improve this answer
    
Would I (or the BA) be able to change the content type of the page? –  John S Dec 15 '11 at 20:33
    
Probably. Can't tell you the exact permissions, but I'd say someone with contributor rights (or at most full control rights) on the site should be able to do it. If you are going to try it out, I should point out that you will also need to create a copy of a page layout to attach to the new content type. –  Paul Lucas Dec 15 '11 at 21:39
    
Ill give this a shot tomorrow. Thanks. –  John S Dec 15 '11 at 22:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.