Hi, doing a saved search to get baseprice, doesn't...
# general
g
Hi, doing a saved search to get baseprice, doesn't work when use formula {pricelevel1}, something wrong? thanks
g
What type of saved search are you creating?
g
search.create({                         type: 'item',                         filters: [['internalid', 'is', itemInternalid]],                         columns: ['baseprice', {name: 'formulacurrency', formula:'{pricelevel1}'}]                     }).run().each(res => {                         log.debug('res', res)                     }) the output is following {"recordType":"inventoryitem","id":"19846","values":{"baseprice":"400.00","formulacurrency":"ERROR: Field Not Found"}}
b
use the pricing join
depending on your account's setup, you may be able to simply use the base price column
g
yeah, just curious, works for other pricelevels like {pricelevel5} but not {pricelevel1}
b
depends on the features enabled in the account, item pricing gets complicated quickly
g
thank you