Cmdlets for ADP

Build 24.0.9060

Update-ADP Cmdlet

Parameters   Output Objects  

Updates ADP data.

Syntax

Update-ADP [parameters]

Remarks

The Update-ADP cmdlet allows you to use a syntax similar to SQL UPDATE statements to update ADP data.

$conn = Connect-ADP -InitiateoAuth "GETANDREFRESH" -OAuthClientId "YourClientId" -OAuthClientSecret "YourClientSecret" -SSLClientCert "c:\\cert.pfx" -SSLClientCertPassword="admin@123"
Update-ADP -Connection $conn -Table "Workers" -Columns @("WorkerID") -Values @("Jon Doe") -Id "6"
The Where parameter can also be used to specify the primary key of the table:
Update-ADP -Connection $conn -Table "Workers" -Columns @("WorkerID") -Values @("Jon Doe") -Where "Id = '6'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-ADP -Connection $conn -Table Workers -Where "AssociateOID = 'G3349PZGBADQY8H8'" | Update-ADP -Columns @("AssociateOID") -Values @("G3349PZGBADQY8H8 2")

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