Create Custom Script and Save on App Created

Is there a way to save the custom script in app and enable to for migrate?

1 Like


Add your custom script in,

if script in custom location,

doctype_js = { "Item": "custom_scripts/item.js", }

if custom script is created in UI,

{ "doctype": "Custom Script", "filters": [ ["name", "in", ( "Employee-Client", )] ] },

export your custom script using bench export-fixtures command


This works. Thanks a lot.