Hello!
On some of our projects we have custom made Reports where it is essential to know who printed it, in case one of them gets lost within the warehouse. We added the Report via Workflow Automation “Run Report” Action with the Customization Project Editor and would now like to attach a “Field Update” to it, that saves the Display Name of the Person clicking on the action into a userfield called “SOOrder.DocketPrinted”.
Has anyone an idea or solution to this?
Greetings
I need something, that i can use within a action.
DocketPrinted Checkbox
DocketPrinted Date
DocketPrinted DisplayName
Sorry, I was thinking that you wanted to display the username in the reports.
I don’t think we can provide the Username here, as an alternative you may need to introduce the field, and when you the field from Workflow automation and then display the Username in the newly introduced field.
Sorry, could u explain what you mean with “introduce the field, and when you the field from Workflow automation and then display the Username in the newly introduced field.”?
I couldn’t really follow.
Hi
Introduce below 2 fields.
- Checkbox Type of field (unbound field)
- Textbox type of field (Where you can show the Username)
From workflow automation, you can update the checkbox type of field and in the graph write a FieldUpdated Event for the checkbox field and write a logic to show the current login username (AccessInfo.Username) in the Textbox field.
Let me know if you have any queries and hope this helps!!
Hi
Would u be able to provide a Example Customization / Code?
I have tried for several hours and could not accomplish the goal of writing the Username inside the Textbox field with your helpful explanation.
Hi
Eg: As I said above, In the Sales Order screen, I have created the below 2 fields.
- Checkbox field
- Textbox field
When I’m Cancelling the Sales Order, I’m checking this checkbox. As soon as we check the checkbox it will show the current logged-in user in the Textbox field.
Please find the screenshots for reference.
Hello
this helps a ton! Thank you very much.
Can i somehow, instead of the Username, get the DisplayName?
I noticed “GetDisplayName” doesn’t work.
Hi,
Base.Accessinfo.DisplayName;
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.