SN Utils Q&A: Advanced inline search Slashcommand
so today simon reached out to me and during this conversation he asked if i could add this script to snutils so actually this can be achieved by the slash command functionality so let's see how that can be done so first we see that the table to query is this variable value table so let's put that in and then in as in the slash commands we do the list query so in this call list.do and then question mark say sperm underscore query is and then copy the encoded query and we see that a search term is being added so first let let's pass the encoded query and then we're gonna add dollar zero as that is the way to replace uh variables so this is the encoded query and after that we need the what he does here is uh return the document key name as well comma as well as document key workflow version so let's add it here and copy all this what we've prepared so far and then we can go to the slash commands so i'll make some space in the text area and then paste so this is the two fields that we want to return so i'm gonna remove that from here and now because this has a sysparm underscore query now it detects that i might wanna do this as an inline search in slash command so it asked me what fields to return so i'm going to paste in those two dot walked fields document key name document key workflow version give it a name so uh this is about workflow activity um so come on wfa and then i'm not actually sure i'm not using this myself but let's give give this as a hint save it and now when we refresh the page we should already be able to leverage the new command so if we do and then wfa and then vmware we see that it has queried the the table api with the command we just created and by hitting the right arrow key it does an inline search if we would hit enter it would go to the list but by doing it like this oh sorry right arrow it does an inline search so this is easy to direct navigate to so that's basically it and for that uh this one is new the fields i did use this in the background already but in the newest version this can be configured yourself so for your custom slash commands you can add that inline search capability now as well so hopefully this is useful another minor thing that has been added recently is i've started to incorporating technical names for uh agent workspace so if the double click to change value works here as well click to directly navigate to the ui action so this is the latest update update see you next time
https://www.youtube.com/watch?v=WTZ-kSawqW0