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
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.
Hi Mike Schmitt ,How are you !!!So i have one query why this is not working for user input task is there any alternative of this we can use so whenever we open input task we can use this.
That's simple. The function a!submitUploadedFiles() was only added to support file uploads in portals. Just do not use it in process start forms or user input tasks.
Understood Thanks !!