Hello,
I'm building a process where a user uploads a completed document as part of a user task. I need to define that uploaded form as a variable so I can use it in another task later on that emails a different user with that uploaded documented as an attachment (this function was built by our development team).
How would I go about defining the uploaded document as a variable?
Solved! Go to Solution.
I worked with our developers and found the bug on our side. It was a variable error in a template that wasn't being reported as an error.
Thank you very much to everyone who responded.
How do you set the file?
if you are using Attach file form field from the form designer, then the document uploaded in the process can be accessible throught the unique id of the field defined. now this variable will only point to the document id, simple use related document service to fetch the document.
Thanks abbask01 for the reply.
The email attachment task that my developers build use the related document service to get the document. The task is working with a call earlier in the process with a Generated Document, presumably because that tasks allows for the specific identification of the document as a variable.
My problem is that when I try to call the document via the form field id I'm getting a null value returned. Even weirder is it was working with the uploaded document using the form field id up until a few days ago.
@JasonUofA wrote:
...
My problem is that when I try to call the document via the form field id I'm getting a null value returned. Even weirder is it was working with the uploaded document using the form field id up until a few days ago.
Has anything changed with the environment or something similar (like permissions, etc) in the last week? Code rarely stops working without some external variable changing and triggering the failure.
I worked with our developers and found the bug on our side. It was a variable error in a template that wasn't being reported as an error.
Thank you very much to everyone who responded.
Hi @JasonUofA
Great news that you've resolved your issue & thanks for updating us.
Take care,
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.