Cmdlets for Airtable

Build 21.0.7930

Update-Airtable Cmdlet

Parameters   Output Objects  

Updates Airtable data.


Update-Airtable [parameters]


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

$conn = Connect-Airtable -APIKey "keymz3adb53RqsU" -BaseId "appxxN2fe34r3rjdG7" -TableNames "TableA,TableB,TableC" -ViewNames "TableA.ViewA,TableA.ViewB,..,TableX.ViewY"
Update-Airtable -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-Airtable -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-Airtable -Connection $conn -Table SampleTable_1 -Where "Column2 = 'Bob'" | Update-Airtable -Columns @("Column2") -Values @("Bob 2")

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930