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

In reply to: Daniel Krüger (Cosmo Consult)

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

Hi Daniel!

Thank you for your answer! I will see that configuration and probably change the way is being done at the moment!

Thank you for your help!!!

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings