HI, I am trying to implement a functionality where I need to save documents from a file upload field to Appian. The button's submit parameter is false. Any idea how this can be implemented?
Discussion posts and replies are publicly visible
Hello Mayuri Mestry
Could you please share the code snippet of your Upload field and the submit button.
uyiu
In my applications, I save various meta data to the database when uploading files. This makes managing files much easier on the long run.
Use this function:
https://docs.appian.com/suite/help/24.1/fnc_system_a_submituploadedfiles.html
Could you please update your reply for better readability.
You can use a!submitUploadedFiles() function as Stefan said, but please note that if your interface is in a process model (which I assume is because you mentioned about submit: false()) then this function won't work. It works either on a site page, on a standalone interface that is not plugged in a Process.
Hi Harshit Bumb (Appyzie) , Yes this interface is in Process Model and using this function throws error "a!submitUploadedFiles() cannot be evaluated in this environment.". Any other way we can have this implemented?
You can use a!writeRecords in submit button saveInto for uploading files into db, then a request id is generated (do onSuccess configuration), pass that request id through rule inputs into process model if you need it for whole data need to be saved in DB.
No. The whole purpose of this is to start off the process.
What do you try to achieve with this upload?
Mayuri Mestry Why don't you just submit the form, and re-open the same interface, if required?
D