Get entries with specific customized fields

Resolved

Get entries with specific customized fields

avatar

Hello,

I am able to retrieve specific entries:
get-RDMSession | Where-Object { $_.Name -like "*NAME*"}

I would like to get the one for which a customized field (named TAG for instance) is equel to a specific value.

Is it possible?

Regards

All Comments (2)

avatar

Hello,

Yes it is possible with the following method.

$session = Get-RDMSession | Where-Object {$_.MetaInformation.CustomField1Title -eq "TAG" -and $_.MetaInformation.CustomField1Value -eq "SomeValaue"}

The downside is that we must use the same Custom Field out of the 5 available because the number is part of the property name.

Just for you to know, here is the method to find the property's name!
https://docs.devolutions.net/rdm/windows/powershell-scripting/tips-tricks/

Let us know if that works.

Best regards,

Érica Poirier

avatar

Hello,

That is perfect.

Regards.