Skip to main content
Nintex Community Menu Bar

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

  • February 5, 2015
  • 7 replies
  • 45 views

Forum|alt.badge.img+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

Forum|alt.badge.img+7
  • Rookie
  • April 7, 2015

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.


Forum|alt.badge.img+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


Forum|alt.badge.img+9

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


Forum|alt.badge.img+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:)


Forum|alt.badge.img+4

Thank you Rency. I have to test it


Forum|alt.badge.img+9

Hi Adriana,

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


Forum|alt.badge.img+4

yes, i have tested and it works...

thank you so much