Hi,
Can someone help me, i have stucked with dimension in purchaseorderproductlinedimensions and can't change/remove/delete it.
I have tried:
<purchaseorderproductlinedimensions><dimension><dimensionname>MyDimName</dimensionname><dimensionitem></dimensionitem></dimension></purchaseorderproductlinedimensions>
<purchaseorderproductlinedimensions><dimension><dimensionname>MyDimName</dimensionname><dimensionitem/></dimension></purchaseorderproductlinedimensions>
<purchaseorderproductlinedimensions><dimension><dimensionname>MyDimName</dimensionname></dimension></purchaseorderproductlinedimensions>
Juho Ruohonen
Netvisor tuki ✓
16.04.2025 2:24 pm
Hi Matti!
Thank you for your message, and sorry for the late reply.
You can change the purchaseorder dimension by giving new Dimension header and new Dimension item in the request. This will overwrite the earlier dimension data.
For example, if you have the following Dimension in the purchase order:
You can give new dimension details in the request, e.g. the following, and this will update the dimensions in the purchase order:
<dimension>
<dimensionname>Myyjä</dimensionname>
<dimensionitem>Mikko Myyjä</dimensionitem>
</dimension>
This request will update the new dimension details to purcahseorder, and also remove the earlier dimension data:
However, currently it is not possible to change the dimensionitem if the Dimenion header remains the same. Also, it is not possible to only delete dimension data via API request, without importing another Dimension header and Dimensionitem at the same request. I will forward this question to our product development and we will investigate whether it would be possible to allow deletion of a dimension item as well as change of the dimension item under same header via API.