Skip to main content
Solved

How to save the name of the person that printed a specific report inside a user field?


Forum|alt.badge.img

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

Best answer by Naveen Boga

Hi @jwestermann17  I’m not sure, If this fulfills your requirement, but here is a sample example and attached the package you can deploy and verify in your instance.

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.

 

 

 

 

View original
Did this topic help you find an answer to your question?

10 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • March 10, 2022

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 117 replies
  • March 10, 2022

@Naveen B Correct me if i am wrong, but i can’t use the =Report.GetDefUI('AccessInfo.DisplayName') formula into a “field update” variable, as it would throw a error that “Report” is not avaiable in this context. I don’t need the name of the User who ran the report on the report, but rather on the sales order screen. 

I need something, that i can use within a action.

DocketPrinted Checkbox
DocketPrinted Date
DocketPrinted DisplayName
 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • March 10, 2022

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.


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 117 replies
  • March 10, 2022

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.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • March 13, 2022

Hi @jwestermann17 According to me, it requires a small piece of customization. Please find the details below.

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!!


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 117 replies
  • March 17, 2022

Hi @Naveen Boga

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.


 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • March 17, 2022

@jwestermann17 Sure will work on this provide the sample example tomorrow for reference.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • Answer
  • March 18, 2022

Hi @jwestermann17  I’m not sure, If this fulfills your requirement, but here is a sample example and attached the package you can deploy and verify in your instance.

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.

 

 

 

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 117 replies
  • March 18, 2022

Hello @Naveen Boga,
this helps a ton! Thank you very much.

Can i somehow, instead of the Username, get the DisplayName?
I noticed “GetDisplayName” doesn’t work.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • March 18, 2022

Hi, @jwestermann17   You can use the below code to get the Display Name, and Hope this helps!!

 

Base.Accessinfo.DisplayName;


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings