Skip to content

filter not working as expected #274

@KezHalls

Description

@KezHalls

Hi
I am having issues with the filter across multiple queries. wondering if I am formatting incorrectly.

Environment

Operating System: windows 11
ServiceNow module version:4.0.5
PowerShell version: 7.4.5

Steps to reproduce

Both the below on same table. I would like to use the sys_class_name as that is more accurate for the data retrieval

#works with results returning
get-servicenowrecord -Table "cmdb_ci_service" -first 100 -DisplayValues true -filter @('category', '-eq', 'Business Service')

doesn't work, returns no results at all
get-servicenowrecord -Table "cmdb_ci_service" -first 100 -DisplayValues true -filter @('sys_class_name', '-eq', 'Business Service')

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions