Community

Connect with us and enhance your M-Files experience using Unitfly Toolkit for M-Files. Here’s how to get started.

Notifications
Clear all

[Solved] Previous Version - Workflow State

0
Topic starter

Hello again,

I'm configuring another Property Operation that would move a document into a workflow state when triggered off of a property that will move the document no matter where it is in the workflow.

 

I have figured out how to do this and works great but I'm wanting to add another rule to move the document back to the previous workflow state that it just came from is where I'm struggling.  I have found PreviousVersion() which seems to work but it is taking the document to the first version of the document.  I'm wondering if there is a way to only move it to the workflow state of the previous version before it was moved by Rule 1. 

 

This is how I have it now.

 

image

 

I can try explaining in more detail if needed.

1 Answer
0

@jwittkopf with function "PreviousVersion()" you are calling out the previous version of a whole object.

When you want to reference just one property you just add "." and this property.

In your case, please try {PreviousVersion().State}.

 

I hope this helps with your use case.

Answer