coolOrangeLabs / powerGateTemplate

powerGate full functional sample ERP integration
MIT License
3 stars 3 forks source link

CreateOrUpdateErpMaterial fails when creating new material from Vault item #233

Closed ThomasRossmeisl closed 1 year ago

ThomasRossmeisl commented 1 year ago

Description

When CreateOrUpdateErpMaterial is used to create a new material from a Vault item it fails, because it calls SetEntityProperties wich passes "_Description(Item,CO)" into Update-VaultItemWithErrorHandling. Update-VaultItemWithErrorHandling uses this in Update-VaultItem -Properties parameter. This is not valid as description is a system property and needs to be updated, using the -Description parameter

Changes