irurzo
03/20/2024, 12:09 AMinventorySubrecord.getSublistValue({
sublistId: 'inventoryassignment',
fieldId: 'receiptinventorynumber',
line: j,
});
But this gets me the text, I deployed the same script for an invoice just changing the field id to issueinventorynumber and it works but for some reason it doesnt on the IR record. Another issue is that for the item sublist, I cant get the text on the IR, this code gets me just the id on both Value/Text on the IR bu on the Invoice it does work I do get the id/text respectively but for the item receipt for both im getting the item id
const itemId = newRecord.getSublistValue({
sublistId: 'item',
fieldId: 'item',
line: i,
});
const itemText = newRecord.getSublistText({
sublistId: 'item',
fieldId: 'item',
line: i,
});
Any idea what should I do to make it work?