Cmdlets for Square

Build 25.0.9434

Update-Square Cmdlet

Parameters   Output Objects  

Updates Square data.

Syntax

Update-Square [parameters]

Remarks

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

$conn = Connect-Square -OAuthClientId 'MyApplicationId' -OAuthClientSecret 'MyApplicationSecret' -CallbackURL 'http://localhost:33333' -LocationId 'MyDefaultLocation'
Update-Square -Connection $conn -Table "Payments" -Columns @("DeviceName") -Values @("Front of store") -Id "Jq74mCczmFXk1tC10GB"
The Where parameter can also be used to specify the primary key of the table:
Update-Square -Connection $conn -Table "Payments" -Columns @("DeviceName") -Values @("Front of store") -Where "Id = 'Jq74mCczmFXk1tC10GB'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Square -Connection $conn -Table Payments -Where "Id = 'Jq74mCczmFXk1tC10GB'" | Update-Square -Columns @("Id") -Values @("Jq74mCczmFXk1tC10GB 2")

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