Help with extension section of pattern

Josh Smith
Giga Contributor

Hello.  I've been trying to complete the Discovery Fundamentals course, but the simulator tasks have done some weird things, such as removing changes that were made previously or not allowing steps to work that should be working.  For example, the task is to grab the processor name for a windows server, and insert it into the description field.  Should be simple enough - WMI Query, Filter Table, then Set Parameter Value.  Except the only thing that actually works is the WMI Query.  The Filter Table does not work, even though I'm specifying the CI name as a condition.  

 

find_real_file.png

6 REPLIES 6

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Josh Smith,

You can't do an equality on an array type, the [*] indicates that it will check that string from list of win servers names populated from this pattern.

You need to remove the * in [*] and just use [], which basically iterates through each row in win server table and checks for name matches the string. The unmatched values are removed.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.

Please mark Helpful / Accept Solution so that it helps others with similar questions.

Josh Smith
Giga Contributor

Hello.  Thank you for your reply.  I'd already tried several variations of the string but the tests still fail in the simulator and the pattern fails when ran.  

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Josh Smith,

Can you share the screenshot of the error logs in discovery or in debug mode.

Probably the simulator could be not behaving the desired way, you can try out once on any other proper snow instances.

Please mark Helpful / Accept Solution so that it helps others with similar questions.

Josh Smith
Giga Contributor

Hello.  After trying again, there are no errors but the field did not update.  The task is to update the description field with the processor name.  Below is each step of the pattern that is being ran.

 

find_real_file.png

find_real_file.png

find_real_file.png