Home > Forum > Forms > How to not allow moving steps if an attachment was not checked-in?

How to not allow moving steps if an attachment was not checked-in?
0

Hello,

I hope you can help with this!

I need to guarantee that a file in the attachments is checked-in (so the version will be different than 1) before moving the workflow to the next step.

In the validation form, I don't have the attachments system so that I can construct a query to verify this.

Does anyone have an idea?

Thank you!

MVP

Hi Andreia,

my best bet is to use a different approach. Instead of relying on the version use categories. Add two categories one "Draft" one "Finalized". Than you can check if the attachment has been moved to the "Finalized" category. Here's a post from the knowledge base regarding categories:

https://community.webcon.com/posts/post/the-add-attachment-action/156

Of course, I don't know your case, but these are my reasons why I wouldn't rely on the version in a general case:
- The attachment could be changed by a user or by a service account
- A document could be saved without changes
- Against which version should be compared. The version which existed when the step was entered? You would need to ensure, that this won't get updated when the step was entered from a different one.

Best regards,
Daniel