How to create a module that filters by dynamic values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2024 03:09 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2024 11:53 PM - edited ‎07-04-2024 11:56 PM
can you try like this : 'valueSTARTSWITHjavascript:gs.getUserDisplayName()'
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-09-2024 04:01 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2024 11:32 PM - edited ‎07-04-2024 11:33 PM
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