- Item fulfillment creation can be restricted using client script in saveRecord entry point.
- Although item fulfillment can be created using bulk fulfillment.
- To restrict the item fulfillment creation including bulk fulfillment action, use the user event script below and deploy into item fulfillment.
const beforeSubmit = (scriptContext) => {
var custError = error.create({
name: 'CUSTOM_ERROR',
message: 'Fulfillment is restricted',
notifyOff: false
});
alert('Fulfillment is restricted')
throw custError
}