Update-SalesLoft Cmdlet
Updates Salesloft data.
Syntax
Update-SalesLoft [parameters]
Remarks
The Update-SalesLoft cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Salesloft data.
$conn = Connect-SalesLoft -InitiateOAuth "GETANDREFRESH" -AuthScheme "OAuth" -OAuthClientID "MyOAuthClientId" -OAuthClientSecret "MyOAuthClientSecret" -CallbackURL "http://localhost:33333" Update-SalesLoft -Connection $conn -Table "Accounts" -Columns @("Name") -Values @("Jon Doe") -Id "6"The Where parameter can also be used to specify the primary key of the table:
Update-SalesLoft -Connection $conn -Table "Accounts" -Columns @("Name") -Values @("Jon Doe") -Where "Id = '6'"The primary key can also be passed to the cmdlet along the pipeline:
Select-SalesLoft -Connection $conn -Table Accounts -Where "Name = 'Bob'" | Update-SalesLoft -Columns @("Name") -Values @("Bob 2")