Update-SAPHybrisC4C Cmdlet
Updates SAP Cloud for Customer data.
Syntax
Update-SAPHybrisC4C [parameters]
Remarks
The Update-SAPHybrisC4C cmdlet allows you to use a syntax similar to SQL UPDATE statements to update SAP Cloud for Customer data.
$conn = Connect-SAPHybrisC4C -Tenant "mytenant.crm.ondemand.com" -User "User" -Password "Password" Update-SAPHybrisC4C -Connection $conn -Table "AccountCollection" -Columns @("AccountName") -Values @("Jon Doe") -Id "'00000000-0000-0000-0000-000000000000'"The Where parameter can also be used to specify the primary key of the table:
Update-SAPHybrisC4C -Connection $conn -Table "AccountCollection" -Columns @("AccountName") -Values @("Jon Doe") -Where "ObjectID = ''00000000-0000-0000-0000-000000000000''"The primary key can also be passed to the cmdlet along the pipeline:
Select-SAPHybrisC4C -Connection $conn -Table AccountCollection -Where "AccountName = 'MyAccount'" | Update-SAPHybrisC4C -Columns @("AccountName") -Values @("MyAccount 2")