Update-FreshDesk Cmdlet
Updates Freshdesk data.
Syntax
Update-FreshDesk [parameters]
Remarks
The Update-FreshDesk cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Freshdesk data.
$conn = Connect-FreshDesk -Domain "MyDomain" -APIKey "myAPIKey" Update-FreshDesk -Connection $conn -Table "Tickets" -Columns @("Name") -Values @("Jon Doe") -Id "6"The Where parameter can also be used to specify the primary key of the table:
Update-FreshDesk -Connection $conn -Table "Tickets" -Columns @("Name") -Values @("Jon Doe") -Where "Id = '6'"The primary key can also be passed to the cmdlet along the pipeline:
Select-FreshDesk -Connection $conn -Table Tickets -Where "Status = '2'" | Update-FreshDesk -Columns @("Status") -Values @("2 2")