Skip to content

-Filter escaping apostrophes incorrectly #52

Open
@aggie87

Description

@aggie87

I think the -Filter logic is escaping apostrophes incorrectly. I get the following error when trying to filter against the following.

$filter = "fullPath -eq ""This Folder's Name""" 
PS> Get-LMDeviceGroup -Filter $filter
Failed to execute web request(400): invalid filter!  fullPath:"This Folder"s Name"

If there is a way to get that string into a filter that would be awesome, but so far, I am not finding it. I think it converts the single apostrophe into double quotes which is mangling the search string with an extra, unbound quote.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions