ShareFile-PowerShell icon indicating copy to clipboard operation
ShareFile-PowerShell copied to clipboard

Send-SFRequest not piping objects over to sorting objects correctly

Open schaepersm opened this issue 11 years ago • 0 comments

Hi,

next one ;)

I'm fetching all accounts filtering the administrative account

    $sfAccountsEmployees = Send-SfRequest -Client $sfLogin -Entity Accounts/Employees | Where-Object {$_.Email -notlike $sfUsername}
    $sfAccountsEmployeestoDelete = $sfAccountsEmployees  | Where-Object {$_.Email -notlike $sfUsername}

$sfUserName is the Account used for logging on sharefile

As you can see now here in the screenshot filtering does not occur on $sfAccountsEmployees

image

Cheers, Mauricio

schaepersm avatar Jun 11 '14 18:06 schaepersm