hi,
I am trying to use upload Files function. this is one of the step in my process. I have a final summary screen, which shows the files uploaded and they should appear as document upload link.
I used a!submitUploaded files in the next button, which actually goes to fIle Upload Screen to the summary screen.
It works fine , when I tested the interface. But shows an error in site.
An error occurred while executing a save: Expression evaluation error: a!submitUploadedFiles() cannot be evaluated in this environment.
Target folder is not Document or Folder but marked as Folder.
Also, editor access permissions has been given to the Users for this folder.
Discussion posts and replies are publicly visible
It is because you can't use that function within an interface that is plugged as a UIT in a process.
I was unclear, because in the OP they say they're trying this on a Site. However if it's actually being invoked in a User Input Task or Process Start Form, you're correct that it won't work. I think the error message you get if you try that, though, is a bit more specific than the one described in the OP (though maybe not).
OP means Original Poster (who posted the question) and UIT is User Input Task.
Quick QUestion - Where is this screen plugged and how is the user accessing it?
User is accessing the Screen through Site.
No tasks or process models . Just an interface configured in site
kowsalyavijayan said:Just an interface configured in site
Well i'm otherwise out of ideas other than making sure your security settings are all aligned (user account(s), folders, etc). On the current version of Appian this should be a supported use case. I guess maybe you could try testing on a simpler interface, one with just a file upload field and a button/link that only fires the "submit uploaded files" control when clicked, and see if it gives you the same error.
kowsalyavijayan If what Mike suggested doesn't work and everything is according to the documentation and still you are unable to make it work, I will recommend opening a support case with Appian to investigate
Harshit Bumb (Appyzie) I think a! submitUploadesfiles() is supported only for portals.
That is not the case. We just implemented this one of our projects and it works flawlessly.
JayaPrakash Ravipati said: Harshit Bumb (Appyzie) I think a! submitUploadesfiles() is supported only for portals.
JayaPrakash Ravipati said:I think a! submitUploadesfiles() is supported only for portals.
This was true in older Appian versions, but was changed in 23.2, as was mentioned in the announcement webinar and release notes.
Harshit Bumb (Appyzie) simple interface works. Also, I recreated the folders and constants and it is working now. I have a question, if a process model is configured in site and the interface is configured as start form having file upload . will a!submituploadedFiles() work. because , this is the next step.
It won't. And you don't need that in the start form because you the user will anyway be submitting the form to initiate the process.
so you mean to say that a!submitUploadedfiles will not work for interfaces called through process model ?
Exactly!!!
kowsalyavijayan Once you find the answers you were looking for, please verify/accept them to close this thread
kowsalyavijayan said:a!submitUploadedfiles will not work for interfaces called through process model
Correct - it is specifically intended not to be used for interfaces in processes, since submitting a form does the same action inherently. I was hoping it would be, since it would have enabled some more advanced single-form file operations, but alas for now we're stuck with having to submit a form to deal with uploaded documents.