0

I have a list workflow which triggers when list item is created or changed.

How to determine which of two events has triggered the workflow?

2 Answers 2

2

The easiest approach is to do an If Item:Created equals Item:Modified do X else do Y.

When an item is created, the created and modified dates are idential. When an item is modified, they are different.

1
0

If you don't want to use PirateEric's suggestion of triggering off Item:Created and Item:Modified, you could create a NewItem yes/no column that defaults to yes and is changed to no by the workflow when it's first run. If you're using the Created/Changed differentiation to determine whether to send an alert email, you could call the column SendAlertEmail. You could then create an InfoPath form that doesn't give users the option to change that field.

Your Answer

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

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