Update-Slack Cmdlet
Updates Slack data.
Syntax
Update-Slack [parameters]
Remarks
The Update-Slack cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Slack data.
$conn = Connect-Slack -OAuthClientId 'MyOAuthClientId' -OAuthClientSecret 'MyOAuthClientSecret' -CallbackURL 'http://localhost:33333'
Update-Slack -Connection $conn -Table "Channels" -Columns @("Name") -Values @("channelname") -Id "123456"
The Where parameter can also be used to specify the primary key of the table:
Update-Slack -Connection $conn -Table "Channels" -Columns @("Name") -Values @("channelname") -Where "Id = '123456'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Slack -Connection $conn -Table Channels -Where "IsPublic = 'True'" | Update-Slack -Columns @("IsPublic") -Values @("True 2")