VMware Cloud Community
mchadwick19
Hot Shot
Hot Shot
Jump to solution

Horizon View Query Filters

I'm trying to write a Query Filter that will filter 'SessionLocalSummaryView' results for a logged in user.

The filter I'm trying to use is:

$qFilter = New-Object VMware.Hv.QueryFilterContains -Property @{ 'memberName' = 'Results.NamesData.userName'; 'value' = $UserName }

This is spitting out an error saying the member is not a valid member name. In all of the documentation I'm seeing is using something like 'base.<something else>'

Where does "base" come from? I tried to doing a get member on the query results and it doesn't have a "base" property. Am I looking at this the wrong way or is there something else I should be looking at?

VDI Engineer VCP-DCV, VCP7-DTM, VCAP7-DTM Design
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Shouldn't that be @{'memberName' = 'NamesData.userName'; 'value' = $UserName}?

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

2 Replies
LucD
Leadership
Leadership
Jump to solution

Shouldn't that be @{'memberName' = 'NamesData.userName'; 'value' = $UserName}?

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

mchadwick19
Hot Shot
Hot Shot
Jump to solution

Hi LucD,

Very picky with capitalization. namesData.userName works.

Thanks!

VDI Engineer VCP-DCV, VCP7-DTM, VCAP7-DTM Design
0 Kudos