New module - Argument field: when to use it?

valerie_gallot
Giga Expert

Hi,
I read the Wiki page : wiki.servicenow.com/index.php?title=Administering_Application_Menus_and_Modules
But I still have a question: when should I use the "argument" field? Only if the module link type is URL, HTML or Script? The Wiki says "is required for specific link types" but that's all...
In all other cases, this field is simply ignored? Why is it not hidden? (I mean in the module creation form... )
If I use a link type "List of records", could you please confirm that I just need to define a filter if needed, but no need to repeat the condition in the "Argument" field?
Many thanks for your help

3 REPLIES 3

Not applicable

You can actually use both but arguments you will probably most use to specify the view to use displaying a list of records.

Example where filter and arguments is used in combination:

Filter: Active is True
Arguments: ^short_description=TEST&sysparm_view=ess

This will lead to a list of records being opened in the Self Service view with a filter

active=true^short_description=TEST

You dont need to repeat the condition in the Arguments field.


niharika2123
Tera Contributor

Hi,



I would like to group by a field and have that as my view for list of records. how can I accomplish this?


valerie_gallot
Giga Expert

Cristal clear! Thanks! (should be added to the Wiki... )