MainPage.Invoice.Value.Name gone from apps

Hello

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?

Hi @CJGO,

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.

Thanks & Happy Automation

No, it is all done in the app.

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.

i’ve made some corrections and i can use .FullName instead.
Do you know when .Name will be usable again?

Actually I don’t have any idea about that. But once I’ll get to know then I’ll update you.

Kindly mark my answer as solution to close this thread so that it can help others.

Thank you & Happy Automation

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)

Thanks for the reply.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.