So, here's the thing. I want, via API, to set a value to a user defined field (in Sales Order).
I'll explain:
Every item master data have 1 user defined field: U_type - this UDF has two possible values: 1 if the item is rentable, 2 if it is only for sale.
The Sales Order also have one UDF: U_agreement - this UDF is 1 if there is any rentable product, 2 otherwise.
What I need to do is to automatically define the value to the UDF U_agreement in the Sales Order.
I already did the code to read the matrix and verify if there is at least one rentable item, I just can't do the code to define the value to the UDF.
Hope you can help me 😊