Hi,
When I'm trying to upload a document by using startprocess , I'm not able to get the name using document() function. It's showing error as document doesn't exist/ has been deleted. But the document is present in target folder and docid is present..Let me know if am missing anything:
Discussion posts and replies are publicly visible
You are missing that a!startProcess does NOT upload files. You need to use a submit button or submit link.
Hi Stefan,We are calling the a!startProcess on the click of submit button. On the click of that button, we are passing the docid to the process model and in process model, we are using document function inside a script task to get the document name. Its throwing error in the script task stating document does not exist or has been deleted
Hi , please check if you have access to the document, check the doc folder security as well.
I have system admin access. The folder is having application admins as administrators and all users as editors. I am a part of both groups. Do I need to check any other security?
That's not what I mean. A submit button is made to either start a process instance when used in a process start form, or complete a user input task.
What you are doing will not work.
Is there any other way to achieve this? I mean uploading documents and storing them in database
Yes. Use interfaces and processes as their are intended! To start a process from an interface, make that interface the start form of that model. Then just enable submit on that button. And get rid of that a!startProcess.
The record field or rule input you use to store the document in, will then directly contain the internal ID of that document.