Cmdlets for Paylocity

Build 23.0.8839

Remove-Paylocity Cmdlet

Parameters   Output Objects  

Paylocity データを削除します。

Syntax

Remove-Paylocity [parameters]

Remarks

Remove-Paylocity コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてPaylocity データを削除できます。

$conn = Connect-Paylocity -InitiateOauth "GETANDREFRESH" -OAuthClientID "YourClientId" -OAuthClientSecret "YourClientSecret" -RSAPublicKey "YourRSAPubKey" -Key "YourKey" -IV "YourIV"
Remove-Paylocity -Connection $conn -Table "Employee" -Id "1234"
Where パラメータは主キーを指定するためにも使われます。
Remove-Paylocity -Connection $conn -Table "exTablePowershell;" -Where "EmployeeId = 1234"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-Paylocity -Connection $conn -Table Employee -Where "EmployeeId = '1234'" | Remove-Paylocity

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839