Attached or not in Power Automate

I have a form that may or may not attach files. The problem is that in powerautomate I do not know how to do one action or another depending on whether you have attachments.
Not working "attachments equals null()"

How can I tell if the form has attachments or not?

Thanks a lot

Hello @XPO-IT,

Welcome to Plumsail Community!

You can check if there is a file in the Attachment field by adding a condition:

length(triggerOutputs()?['body/Attachments1'])

Ok, that's sound good. Thank you very much!