0

Using Sitecore 9, is it possible out of the box for an item to follow a certain workflow when a specific value is set for a field.

e.g I have a severity field which if has a certain value, means the item needs to go through a different workflow.

One approach could be a custom workflow submit action based on the "Auto Submit Action" that looks at the value of the severity field and sets the Workflow of the item accordingly. Is this the best approach? Wouldnt it require me to use an Action rather than a Command to move an item to the next workflow state?

1 Answer 1

1

Out of the box, there is no such option. Well. Not really, anyway.

Using the Rules Engine

Under the assumption that "out of the box" is in the meaning of "no code should be deployed", there is sort of a way. But I wouldn't do it.

Use the Rules Engine to capture the item:saved event.

enter image description here

But you're still going to need some code. Run the specific script would then point to a code snippet where you could set a specific Workflow (e.g. "Escalated", "Normal" and so on).

This would be "out of the box" but I strongly recommend against it. You still need code (in the script) but now you're embedding the code as Sitecore content. Code belongs in your Visual Studio solution.

Action versus Command then...

To the second part of your question; if you're creating code - how to go about it? This question already has an answer here: Decide the Workflow state on the fly

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.