App framework script unloader does not work for sys_ui_action recordsDescriptionWhen creating an application template from an app including a UI Action with a script that contains the scope name or the app's table names, that scope name/table names do not become variables in the corresponding payloads.Steps to Reproduce Create an app by running an application template.Navigate to sys_ui_action.In the scope of the new app, create a new record, and add the script "var x = "<app scope>";".Navigate to the sys_app and click Create Application Template.Navigate to sys_app and open the newly created template.Open the sys_ui_action payload record. The script does not get variablized - e.g. <![CDATA[ var x = "x_snc_20201214_r"; ]]>.WorkaroundReplace your scope name and table names in your UI Action script with their corresponding variable tokens.Related Problem: PRB1454641