0

I have a calendar list, and I need to have it so that only items that meet a certain condition require approval. I have tried to use workflow, but when I fire them on the create/change event, the change event gets started every time that an approval status changes also.

Is there any way around this?

Basically what I need is this process:

User creates event-> If X is checked -> require approval Else -> no approval required

And the same thing for when the list item changes.

Note: I'm using SP 2010 Enterprise and have access to SharePoint Designer.

2 Answers 2

1

What you can do is set an if condition before the workflow. Since you said you have check box, create a local workflow variable to catch the Boolean value (or you can compare the field directly from "Current Item"'s column). And add a column to the list or content type, called "Item Status". Give default value of it as "Pending". Now you can check both with an if condition.

Set Variable:xyz to [%Current Item:CheckboxName%]

if xyz is equal to 1 
 if [%Current Item:Item Status%] is equal to Pending
   then Start Approval Workflow Task on Current Item with parameter: Approvers

Once the task is approved, then update the list column to

Update item in Current Item
0

In a workflow you'd do if field is checked, do approval process, else Add an impersenation step and set the item approval status to approved.

1
  • On some items the user will still have to manually approve/reject, so won't that trigger the change event?
    – Ethan
    May 7, 2013 at 18:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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