Cmdlets for Marketo

Build 25.0.9434

Update-Marketo Cmdlet

Parameters   Output Objects  

Updates Marketo data.

Syntax

Update-Marketo [parameters]

Remarks

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

$conn = -Connect-Marketo -URL 'https://MyMarketoUrl.mktorest.com/' -OAuthClientId 'MyOAuthClientId' -OAuthClientSecret 'MyOAuthClientSecret'
Update-Marketo -Connection $conn -Table "Leads" -Columns @("Email") -Values @("Jon Doe") -Id "c2ef66a5-a545-413b-9312-79a53caadbc4"
The Where parameter can also be used to specify the primary key of the table:
Update-Marketo -Connection $conn -Table "Leads" -Columns @("Email") -Values @("Jon Doe") -Where "Id = 'c2ef66a5-a545-413b-9312-79a53caadbc4'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Marketo -Connection $conn -Table Leads -Where "Email = '[email protected]'" | Update-Marketo -Columns @("Email") -Values @("[email protected] 2")

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