Cmdlets for Sage 50 UK

Build 24.0.9060

Remove-Sage50UK Cmdlet

Parameters   Output Objects  

Deletes Sage 50 UK data.

Syntax

Remove-Sage50UK [parameters]

Remarks

The Remove-Sage50UK cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Sage 50 UK data.

$conn = Connect-Sage50UK -URL 'http://localhost:5493/sdata/accounts50/GCRM/{C4C863BE-B098-4A7D-A78B-D7A92B8ADB59}' -User 'Manager' -Password 'xxxxxx'
Remove-Sage50UK -Connection $conn -Table "TradingAccounts" -Id "c2ef66a5-a545-413b-9312-79a53caadbc4"
The Where parameter can also be used to specify the primary key:
Remove-Sage50UK -Connection $conn -Table "exTablePowershell;" -Where "TradingAccountUUID = c2ef66a5-a545-413b-9312-79a53caadbc4"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Sage50UK -Connection $conn -Table TradingAccounts -Where "TradingAccountUUID = 'c2ef66a5-a545-413b-9312-79a53caadbc4'" | Remove-Sage50UK

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060