Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

Sandeep Rajput
Tera Patron

@Masato Sugawara You need to use the Dynamic Filter feature in this case. For more information about this feature, please refer to https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/use/using-lists/task/t_....

 

Hope this helps.

@Sandeep Rajput 

 

Thank you for letting me know about the dynamic filter feature.


I created the dynamic filter shown below, but I can't set it up for three reasons.

1. Additional comments don't appear in the filter
2. I don't know how to create an operator to replace the operator [is(dynamic)] on the page you showed me
3. I don't know if the dynamic filter is correctly retrieved with [@ + "Currently logged in user name"]

MasatoSugawara_0-1720155881059.png

 

I'd like to solve the above three issues.
Could you tell me how to create and set up a simple dynamic filter?

Abdul Azeem
Tera Contributor

Hi @Masato Sugawara 

 

Can you try using the argument field. You can add any query here.

AbdulAzeem_0-1720089208251.png

 

HI @Abdul Azeem  

 

Thank you for your reply.

I found that I can get the results I want by entering [active=true^commentsSTARTSWITH@System Administrator].

 

I would like to automatically obtain and enter the search string [@ + "currently logged-in user name"]. Is this possible?