Jared Fraley
05/26/2022, 3:39 PMvar avgCost = item.getValue({
fieldId: 'averagecost',
});
log.debug({
title: itemId,
details: "Average Cost: " + avgCost
});
var purchasePrice = item.getValue({
fieldId: 'cost',
});
log.debug({
title: itemId,
details: "Purchase Price: " + purchasePrice
});
var lastPurchasePrice = item.getValue({
fieldId: 'lastpurchaseprice'
});
How come only purchasePrice returns a value? There's values for all 3, yet avgCost and lastPurchasePrice return blankSandii
05/26/2022, 3:52 PMaveragecost
and lastpurchaseprice
both pull values from me after record.loadJared Fraley
05/26/2022, 3:53 PMSandii
05/26/2022, 3:54 PMJared Fraley
05/26/2022, 3:54 PMSandii
05/26/2022, 3:55 PMJared Fraley
05/26/2022, 3:55 PMSandii
05/26/2022, 3:56 PMJared Fraley
05/26/2022, 3:57 PMJared Fraley
05/26/2022, 3:57 PM