cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Current user's name in document UDF?

Former Member
0 Kudos

Hi,

How to get Current user's name in document UDF?

I requried a query which will give me user's name who is currently loged in to the system.

My client want's to print the name of user who create the document, for that i have used Owner name field on document but we are able to chenge that field.

to avoid that i want the name of user who is currently loged in to system.

Accepted Solutions (1)

Accepted Solutions (1)

KennedyT21
Active Contributor
0 Kudos

Hi Swapnil Vichare ...

If you want to save the current user name in the UDF try the below query


SELECT T0.U_NAME FROM OUSR T0 WHERE T0.INTERNAL_K = $[USER]

But in all the documents the User sign is already captured by default you can also use the same for the printing too

Hope helpful

Regards

Kennedy

Answers (2)

Answers (2)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

You can achieve through FMS.

1. Run below query and save it under query manager

SELECT T0.U_NAME FROM OUSR T0 WHERE T0.INTERNAL_K = $[USER]

2. Assign the above FMS in UDF field to update user name.

3. Add this UDF in your layout to display user name.

Hope helpful.

Thanks & Regards,

Nagarajan

Former Member
0 Kudos

Hi,

Try:

SELECT T0.U_NAME FROM OUSR T0 WHERE T0.INTERNAL_K = $[USER]

Thanks,

Gordon