I’ve got multiple apps where users can insert files. The function for getting the filenames like:
MainPage.Invoice.Value.Name
doesn’t work anymore. the function for “.Name” is gone.
It started happening yesterday, today in the morning i was able to use “.Name” again, but now it is gone again?
I want to know that is your file is saved in any folder or not? If yes then loop through that folder using for each file in folder and use the reference name of currentfile.fullname to get the file name one by one.
The file that the users upload is saved in a storage bucket. The filename is then saved and passed as an In argument to the process that starts, so I can retrieve the uploaded file from the storage bucket.
Since .Name is no longer available, I no longer get the filename and therefore can’t retrieve the file from the storage bucket in the running process.
When I use Value.ToString, the argument ends up as: in_FileName = Apps.Controls.AppsFile
the issue is that .Value.Name on the Apps file control is intermittently missing, and Value.ToString only returns Apps.Controls.AppsFile, so the filename isn’t passed to the process and the storage bucket file can’t be retrieved.
We recently did work on Filesupport in Apps. This is expected behaviour as IResource has fullName instead of name. This means all expected deployed apps should work as earlier and newer apps should use fullname instead of name. (On opening the designer you would see the validation error which needs to be corrected to FullName)