How to create a module that filters by dynamic values

Masato Sugawara
Tera Contributor

In a PDI environment, I would like to create a module in the application menu that displays a list of records where "@logged-in user name exists at the beginning of the additional comment in the incident table."
I am imagining a filter for the Incident module under Service Desk in the application menu,

but in "List of Records," it is not possible to dynamically obtain the logged-in user name and set it as a value.

Please tell me how to create a module that dynamically obtains values ​​and displays filters.

7 REPLIES 7

can you try like this : 'valueSTARTSWITHjavascript:gs.getUserDisplayName()'

AbdulAzeem_0-1720162357328.png

 

It will give you list of comments added by logged in user like in below SS. This will give you results only if logged in user name is at the start of the comment otherwise you need to alter the argument query.

 

AbdulAzeem_1-1720162408170.png

 

HI @Abdul Azeem  

 

Thank you for your reply.

I was able to filter comments.

However, the above method requires referencing two tables, which I think makes it hard for users to use.

I'd like to find another way to filter with a single action.

Trupti94
Tera Guru

Hi @Masato Sugawara ,

 

You will have to use gs.getUserID() function to get dynamic value of user in dynamic filters. Please check below screenshot for reference

 

Trupti94_0-1720161139827.png