Hello,
I'm having a bizarre issue, and in fact might even be going crazy. I'm hoping this is a bug.
I have a form where a user uploads a file to a document library. This is done with Power Automate, which will then return the File ID for use in triggering a second automation.
What I need to do is get the filename of the uploaded file. I have a Form called Form1 and in the only datacard is an attachment control called AttachFile.
As you can see below, if I reference First(AttachFile.Attachments).Name, I can get the filename (this control only allows 1 attachment at a time) in a label called FileName.
However, I can't reference this outside of the Form1 form control. This isn't normal behaviour as I do this frequently, and have another app running that uses this same technique and I just checked it, and it works totally fine.
However, outside of the Form1 control, I have another text label called FileName_Text. If I set FileName_Text to First(AttachFile.Attachments).Name it comes up blank. Ditto if I use Value.
If I set it to FileName.Text, it also comes up blank, even though I can see that the text is there.
Why can't I reference controls inside a Form, outside of that form, but only on this app. The app I am working on is not new, and was created about 1 year ago (the app that is working was created about 3 years ago), and I'm simply adding a new function.
Here's a screenshot that shows my formula, and that it is not returning anything.
For reference, here's the formula for FileName. It works because it's inside the Form1 control, I guess? This doesn't seem like usual behaviour.
