How to get the name of the user who uploaded a document automatically in the workflow tool?

I would like to know if there is the possibility of storing the name of the user who sent a file within a type of metadata already created. I got this information (user name) through the following code:

{{ workflow_instance.get_last_log_entry.user.first_name }}

This code only works when the user transitions from one state to another in a manual way.

However, when the workflow is triggered automatically, the output of this code returns in a blank space:

Any ideas how to resolve this? Would it be possible to get the user’s name directly when creating metadata in metadata types? @roberto.rosario

1 Like