arnoudkooi / ServiceNow-Utils

Browser Extension to enhance experience and productivity in ServiceNow
https://arnoudkooi.com
241 stars 115 forks source link

Use number field as short cut in to navigate to a record. #470

Closed ewatch closed 6 months ago

ewatch commented 7 months ago

Not sure about a 100% solution yet but I thought it would be nice to fastly navigate to a record with the following approach:

Bildschirmfoto 2024-02-08 um 14 12 48

One thought was here to also query the table to verify if this is a valid number (at least the starting chars like INC, CHG, etc.): sys_number

What do you think about this topic ?

I know its also possible to go there via the searchfield but I would like it to just go there through slashcommands. Other possibility would be to do the following:

Best regards, Jan

TWalkerVeracity commented 7 months ago

This is already a feature with the /tsk slash command.

ewatch commented 7 months ago

My example was now only in relation to task. Yes /tsk would work for task tables that inherit the "Task" table. 👍

But it should be working for every table that uses the "Prefix" configuration.

Example: On the PDIs there is for example a table "ast_contract" which doesn't inherit from task. "/CNTR0009001" should also work in this case.

Best regards, Jan

avotom commented 6 months ago

You can just use "/search CNTR0009001"

ewatch commented 6 months ago

Hey @avotom, that's a good idea. Thank you. Then I will close this issue.

arnoudkooi commented 6 months ago

Based on this discussion I added this

  • Slash command now triggers a global search when no match is found, ie: /INC3940740 opens that incident. This is a shortcut for the /search command. If the command contains a _ it tries to open a table list like it used to.

More in CHANGELOG.md / latest commit