yes but I have multiple attachment controls... this example only says if any attachments are uploaded, not which control uploaded them.
Marian Hatala to provide some additional context into the solution (and aid others in the future) – Josh Henderson had multiple attachment controls on his form and needed a means (via Nintex Workflow) to determine if each of those controls independently had files uploaded. For instance:
The ItemProperty:Attachments property will give you a boolean (Yes/No) if there are any attachments, but in Josh's case, he needed to know if any (or how many) documents had been uploaded to a specific attachments control in the form.
We started down a call web-service action path initially, but unfortunately the GetAttachmentCollection method doesn't expose which control is associated with each attachment.
However, I was able to accomplish what Josh Henderson was looking for by parsing specific nodes out of the ItemProperty:FormData XML. A Query XML action can be used to retrieve named attachment controls from FormVariables (see screenshot below):
This action results in a text variable output which contains each of your attachments with a semi-colon delimiter (i.e. someImage.png;anotherImage.png). You can then split on the delimiter into a collection, count attachments, and work with as needed.
I somehow understood needs to validate 3 separate controls on form, but just needs to identify an item has attachment in workflow. and he haven't explicitly mentioned it should (still) be per single attachment control. maybe a problem of discussing several topic within one thread, I might have advised him to start a new question(s) for new topics and explain the exact requirements.
but ok, my bad
sure, I know which attachment was uploaded with which control could be determined from FormData