Update-SAPHanaXSA Cmdlet
Updates SAP HANA XSA data.
Syntax
Update-SAPHanaXSA [parameters]
Remarks
The Update-SAPHanaXSA cmdlet allows you to use a syntax similar to SQL UPDATE statements to update SAP HANA XSA data.
$conn = Connect-SAPHanaXSA -OAuthClientID "MyOAuthClientID" -OAuthClientSecret "MyOAuthClientSecret" -URL "https://hxehost:51027/euro.xsodata" -CallbackURL "http://localhost:33333"
Update-SAPHanaXSA -Connection $conn -Table "SampleTable" -Columns @("Column1") -Values @("Jon Doe") -Id "6"
The Where parameter can also be used to specify the primary key of the table:
Update-SAPHanaXSA -Connection $conn -Table "SampleTable" -Columns @("Column1") -Values @("Jon Doe") -Where "Id = '6'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-SAPHanaXSA -Connection $conn -Table SampleTable -Where "Column2 = 'Bob'" | Update-SAPHanaXSA -Columns @("Column2") -Values @("Bob 2")