Closed tobvil closed 2 years ago
Hi @tobvil. The issue is this is a reference field and the data returned are references to the item, not properties of the item. Neither display_value nor link are actual properties of that item. If you dot walk one of the actual properties it will work for you. Eg. Get-ServiceNowRecord -Table 'Requested Item' -Filter @('cat_item.sys_id','-eq','randomid')
.
Thanks for explaining @gdbarron! Works perfectly 👍
Environment
Steps to reproduce
Expected behavior
Should return request items with the specified catalog item link.
Filtering works fine on properties that are not nested. I.e short_description or state. But cat_item contains 2 properties. display_value and link.
Actual behavior
Returns all request items. Filter is not working at all.