Cmdlets for Klaviyo

Build 25.0.9434

Update-Klaviyo Cmdlet

Parameters   Output Objects  

Updates Klaviyo data.

Syntax

Update-Klaviyo [parameters]

Remarks

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

$conn = Connect-Klaviyo -AuthScheme "OAuthPKCE" -InitiateOAuth "GETANDREFRESH" -OAuthClientId "myClientId" -OAuthClientSecret "myClientSecret" -CallbackURL "http://localhost:33333" 
Update-Klaviyo -Connection $conn -Table "SampleTable_1" -Columns @("Column1") -Values @("Jon Doe") -Id "6"
The Where parameter can also be used to specify the primary key of the table:
Update-Klaviyo -Connection $conn -Table "SampleTable_1" -Columns @("Column1") -Values @("Jon Doe") -Where "Id = '6'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Klaviyo -Connection $conn -Table SampleTable_1 -Where "Column2 = 'Bob'" | Update-Klaviyo -Columns @("Column2") -Values @("Bob 2")

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434