interfacesc_cat_item_producer{ allow_edit:Typed<boolean,{default:false;label:"Allow edit"}>; can_cancel:Typed< boolean, { default:false; label:[ { hint:"Controls whether a cancel button is shown on the record producer form"; label:"Can cancel"; plural:"Can cancels"; }, ]; }, >; post_insert_script:Typed< string |number, { attributes:{no_text_index:true}; columnType:"script_plain"; default:"/**\r\n* This script is executed after the record is generated. \r\n* `current` Is the GlideRecord produced by Record Producer. Use `current.update()` to update the record\r\n* To access the variables, use `producer.var1` where var1 is the name of the variable\r\n* To access the Record Producer use `cat_item`\r\n*/"; label:"Post insert script"; maxLength:8000; }, >; redirect_url:Typed< "generated_record" |"catalog_home", { attributes:{edge_encryption_enabled:true;no_text_index:true}; choices:{ catalog_home:{label:"Catalog homepage";sequence:20}; generated_record:{label:"Generated task record";sequence:10}; }; default:"javascript: gs.getProperty('glide.sc.producer.redirect_url', 'generated_record')"; dropdown:"dropdown_without_none"; label:[ { hint:"Decides where to land after record creation. Works for Service Portal as well"; label:"Redirect to"; plural:"Redirect to"; }, ]; }, >; save_options:Typed< "destination", { attributes:{edge_encryption_enabled:true;no_text_index:true}; choices:{destination:{label:"Save in destination";sequence:10}}; dropdown:"dropdown_with_none"; label:"Save options"; }, >; save_script:Typed< string |number, { attributes:{no_text_index:true}; columnType:"script_plain"; default:"/**\r\n* This script is executed at every step save in Catalog Builder. \r\n* This script is executed before `Script` is executed.\r\n* `current` Is the GlideRecord produced by Record Producer. \r\n* To access the variables, use `producer.var1` where var1 is the name of the variable\r\n* To access the Record Producer use `cat_item`\r\n*/"; label:"Save script"; maxLength:8000; }, >; script:Typed< string |number, { attributes:{no_text_index:true}; columnType:"script_plain"; default:"/** This script is executed before the Record is generated\r\n* `current`- GlideRecord produced by Record Producer\r\n* Don't use `current.update()` or `current.insert()` as the record is generated by Record Producer\r\n* Don't use `current.setValue('sys_class_name', 'xxx')` as this will trigger reparent flow and can cause data loss\r\n* Avoid `current.setAbortAction()` and generate a separate record\r\n* Use `producer.var1` to access variables\r\n*/"; label:"Script"; maxLength:8000; }, >; sys_id:Typed< string |number, { active:true; column_type:"GUID"; label:"Sys ID"; mandatory:false; read_only:false; }, >; table_name:Typed< keyofTables, { attributes:{base_start:true;no_text_index:true;no_views:true}; label:"Table name"; mandatory:true; }, >; view:Typed< string, { attributes:{edge_encryption_enabled:true;no_text_index:true}; label:"View"; }, >; }
can_cancel:Typed< boolean, { default:false; label:[ { hint:"Controls whether a cancel button is shown on the record producer form"; label:"Can cancel"; plural:"Can cancels"; }, ]; }, >
Readonlypost_insert_script
post_insert_script:Typed< string |number, { attributes:{no_text_index:true}; columnType:"script_plain"; default:"/**\r\n* This script is executed after the record is generated. \r\n* `current` Is the GlideRecord produced by Record Producer. Use `current.update()` to update the record\r\n* To access the variables, use `producer.var1` where var1 is the name of the variable\r\n* To access the Record Producer use `cat_item`\r\n*/"; label:"Post insert script"; maxLength:8000; }, >
Readonlyredirect_url
redirect_url:Typed< "generated_record" |"catalog_home", { attributes:{edge_encryption_enabled:true;no_text_index:true}; choices:{ catalog_home:{label:"Catalog homepage";sequence:20}; generated_record:{label:"Generated task record";sequence:10}; }; default:"javascript: gs.getProperty('glide.sc.producer.redirect_url', 'generated_record')"; dropdown:"dropdown_without_none"; label:[ { hint:"Decides where to land after record creation. Works for Service Portal as well"; label:"Redirect to"; plural:"Redirect to"; }, ]; }, >
save_script:Typed< string |number, { attributes:{no_text_index:true}; columnType:"script_plain"; default:"/**\r\n* This script is executed at every step save in Catalog Builder. \r\n* This script is executed before `Script` is executed.\r\n* `current` Is the GlideRecord produced by Record Producer. \r\n* To access the variables, use `producer.var1` where var1 is the name of the variable\r\n* To access the Record Producer use `cat_item`\r\n*/"; label:"Save script"; maxLength:8000; }, >
Readonlyscript
script:Typed< string |number, { attributes:{no_text_index:true}; columnType:"script_plain"; default:"/** This script is executed before the Record is generated\r\n* `current`- GlideRecord produced by Record Producer\r\n* Don't use `current.update()` or `current.insert()` as the record is generated by Record Producer\r\n* Don't use `current.setValue('sys_class_name', 'xxx')` as this will trigger reparent flow and can cause data loss\r\n* Avoid `current.setAbortAction()` and generate a separate record\r\n* Use `producer.var1` to access variables\r\n*/"; label:"Script"; maxLength:8000; }, >