Hello. There is a way to set the price1quantity2 e...
# general
g
Hello. There is a way to set the price1quantity2 etc values using suitescript?
b
on the item record?
g
Yes
b
its one of the more complicated topics for suitescript records
g
sorry but I am a newbie. I don't understand what I should do
I tried
Copy code
productToUpdate.setMatrixHeaderValue({
    sublistId: 'price1',
    fieldId: 'price',
    column: 1,
    value: qty1
});
b
the ids you use are feature dependent
you can either experiment, or go through the docs to see when to use which id
g
I have both multicurrency and multi quantity
b
Pricing Sublist ID will tell you which sublist id to use
g
ok
so
b
Pricing Sublist Field IDs will get you the internal id of the field you want to set
g
If i geti ti right
b
although its usually the same
g
I have to use setSublistValue
for line 0 I think
price1 as id
price ad internal id
as
b
there are 3 features related to pricing sublist/matrix
identify which of those features are enable and disabled
and determine which ids you use to get/set values
on the more experimentation base approach, just set all the fields with different values and try getting them
netsuite will throw errors for things that dont work
g
I don't have errors but it don't work
b
you can try sharing more code
along with a screenshot of your pricing matrix
g
message has been deleted
b
you have all the pricing related features enabled
and want to follow the directions to Pricing Sublist ID and identify the internal ids of your currencies so you know which sublist id to use
g
euro is price1
let's focus on this
b
which of those values do you want to get