Hello everyone,
I made an application in which certain data are entered, which are then saved on a SP list. One of these data is an attachment. An attachment may or may not be added, because sometimes there is no need for it.
Adding attachments through flow works fine for me. But I have a problem when the attachment is not placed? What to do then?
I'm not sure if it's enough to add something to the code or do I have to do something in the flow? If I have to do something in flow, can someone tell me exactly what? ๐
The APP
The code on the "Zavrsi" button which is conneted to my flow
The flow
Solved it by adding in PowerApps If(IsEmpty(Attachement),do this, do this (if its not empty) ๐
Not really sure what you can change in Power apps for this, but check out the following posts, might help:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Empty-Attachments/td-p/179806
I think I understand what the problem is. Flow is ok, if there is an attachment, add it, but if there is none, then the app displays an error:
I need to add something to Run. to let him know that the attachment doesn't have to be, do you know how to achieve that?
Hey @dea4e
You should pass the field that contains attachment. Not really sure. Probably use a field called Attachments.
Though just be careful, You are using get file content of one drive, you should be using get file content of sharepoint.
than you, are you thinking of something like this?
If so, can you help me with the lower one? I don't know what to write in these fields, and whether the condition "Has Attachment - is equal to - expression true" is set correctly.
Additionally, what should I put under "apply to each" because I want it to apply to multiple attachments that someone can put in?
Hey @dea4e
What error you are getting if attachment is empty?
You can try two things, check before if attachment is available, if it is, use add attachment otherwise dont add attachment.
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473