Skip to main content

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

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.


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


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


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


Thank you Rency. I have to test it


Hi Adriana,

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


yes, i have tested and it works...

thank you so much


Reply