Hi!
Can someone help me on how to fetch the user id of who did the submission of the document? I’ve tried doing the {{frappe.get_fullname(doc.modified_by)}} but it seems like it shows the name of user who last edited the document not the one who submitted the document. I would like also to get the timestamp of the activity


If this is purely for docstatus (Draft/Submitted/Cancelled) then add a field to link the user then write a before_submit and before_cancel methods to populate that field with frappe.session.user.
However, in the above case modified_by should be as useful since there are no modifications a user can do after a doc has been submitted/cancelled (unless you have some allow on submit fields)
If the case is for workflow_state and have a bunch of states then you can create a child doctype that stores the user and the action done and then again you will need to write some methods to record this data on every state change.
Can you share a code what attribute i can use to call the user who submits the document?
Can you share a code for this?