Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Query regarding pattern

Khasim khan
Tera Contributor

What’s the exact answer for this?

IMG_3092.jpeg

1 ACCEPTED SOLUTION

SwarnadeepNandy
Mega Sage

Hello @Khasim khan,

 

The correct answer is D.

There is a tabular variable named ‘name_details’. This is because the value uses the syntax $name_details[1] to access the first row of the tabular variable. A scalar variable would not have brackets or an index. This value is not from a WMI query operation step, but from a pattern step. A WMI query operation step would use the syntax wmic <query> to execute a WMI query. This value can be used in a pattern step, as long as the variables are defined and valid. For more information on pattern steps, see Pattern Steps - ServiceNow Docs. For more information on WMI queries, see Querying WMI - Win32 apps | Microsoft Learn.

 
Kind Regards,
Swarnadeep Nandy

View solution in original post

7 REPLIES 7

@SwarnadeepNandy ,
IMG_3093.png

Then Maximumworkingsetsize,Pagefaults are scalar?

and win_process,$more_process_info tabular variables?

@SwarnadeepNandy ,

Could you please look into the above question and confirm the solution.

Yes, but more_process_info is not a variable. It is table name.  but win32_process is tabular and Maximumworkingsetsize,Pagefaults are scalar.