Set a Condition - if Attachments is empty- does not work properly

  • 5 February 2015
  • 7 replies
  • 13 views

Badge +4

I need to check if the Attachments field is empty and i have  used the Set a condition Action, with where= Attachments is empty.

 

It doesn't matter if there are attachments or not, but every time the workflow runs,  it  goes on the No branch.

 

am i not setting the right condition?

 

could you help me please?

 

thank you

adriana


7 replies

Badge +5

Adriana,

You'll want to check the Attachments field against a Yes/No variable as it appears to return True or False. You can test this for yourself by creating a text variable (txtAttach) and setting that to the item's Attachments field. By writing the results to a log, you'll see the results (True or False).

 

Hope this helps.

Badge +9

Hi Adriana,

I tested it out and got it to work. This is the condition I used and it went down the Yes branch.

attachments.JPG

Badge +9

In your case you want it to equal "No" since you are checking to see if there aren't any attachments.

Badge +4

Tahnk you for your sugestion. I have to try this. This idea seems so simple, but i cannot see in front of my eyes:)

Badge +4

Thank you Rency. I have to test it

Badge +9

Hi Adriana,

Did you happen to test it? Are you still having problems?

Badge +4

yes, i have tested and it works...

thank you so much

Reply