Hi All,
We have a scenario to extract data from PDF. In interface we have a screen to upload file and on submit starting a process using a!start process to extract data from that file. It is working fine from developer mode.
when we add that screen to site document is not passing to that process, we are getting error like invalid content ID.
Thank you.
Priyanka
Discussion posts and replies are publicly visible
We should not use start process for data extraction as file will not be uploaded to appian until the action is completed so if you want to extract file upload file and complete action in the interface or you can use a!submituploadedfiles() function in a!save before starting the process
We are using same button for submitting file and starting a process. Is there any alternative way.
Hi,
a!submitUploadedFiles() Function - Appian 23.3, Please go through the link. In examples, you can see how to Upload a file outside of a start form or task and start a process.
a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Submit", style: "PRIMARY", saveInto: a!startProcess( /* Replace this with a constant of type Process Model that writes the image ID */ processModel: cons!PROCESS_MODEL_CONSTANT, processParameters: { vehicle: local!data }, /* Only upload the files if the process completes successfully */ onSuccess: a!submitUploadedFiles( onSuccess: a!save(local!submissionSuccessful, true), onError: a!save(local!submissionSuccessful, false) ), onError: a!save(local!submissionSuccessful, false) ) ) }, align: "START" )