JessicaL
02/15/2022, 5:27 PMlet soCreation = record.create({
type: record.Type.SALES_ORDER,
isDynamic: true,
defaultValues : {
entity: customer,
cf: 133
}
});
soCreation.selectNewLine({
sublistId: 'item'
});
soCreation.setCurrentSublistValue({
sublistId: 'item',
fieldId: 'item',
value: 12554,
ignoreFieldChange: false
});
soCreation.commitLine({
sublistId: 'item'
})
let finishedSO = soCreation.save();
This button will be clicked by a user using a custom Customer Center role. I have set the Sales Order permission on the Customer Center role to 'Edit.' However, I keep getting the following error: "Permission Violation: You need a higher level of the 'Transactions -> Sales Order' permission to access this page. Please contact your account administrator." Any insight?Eric B
02/15/2022, 7:09 PMEric B
02/15/2022, 7:11 PMJessicaL
02/15/2022, 9:08 PM