Hi,
I clarify my question:
user Johndoe uploads a document, a worlflow is automaticly started:
The system sends an email to PB/MC asking for a new file to validate…:
Hi,
The document: {{ document }} is now ready to be validated (or rejected).
To access it click on the following link:
{{ document }}
Please, don’t reply to this email (as I’m a machine it will not be read)
TESTS trying to get the username or user_email of the user who uploaded the document in mayan…
this document was uploaded by : (user and username)
env.username :
{{ env.username }}
This template will give the username of the user that made the last transition:
{{ document.workflow.Workflow_1_niv.get_last_log_entry.user.username }}
username from upload form:
{{ document.metadata_value_of.mUploader }}
problem:
when i receive the email from the system these fields are empty:
{{ env.username }}
{{ document.metadata_value_of.mUploader }}
{{ document.workflow.Workflow_1_niv.get_last_log_entry.user.username }}
mUploader metadata is coming from the upload form :



The final goal is to have the email like this:
The document: {{ document }} is now ready to be validated (or rejected).
To access it click on the following link:
{{ document }}
The document was uploaded by XXXUSERNAMEXXX, XXXUSEREMAILXXX.
Could you please provide some help ?