Why this function is Not Working in Flow designer Action ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2024 11:57 PM
Why this function is Not Working in Flow designer Action when i try from background script its working fine but when use in script action and try to call that function in flow designer it was not working
function(sys_id_data_source) {
var gr = new GlideRecord('sys_data_source');
gr.addQuery('sys_id', sys_id_data_source);
gr.query();
if (gr.next()) {
// refresh data stream schema
if (gr.type == 'data_stream') {
var dsUtil = new sn_impex.GlideDataSourceUtility();
dsUtil.refreshDataStreamSchema(gr.sys_id);
}
var redirectStr = "sys_import.do?"; // the URI
redirectStr += "import_source=data_source"; // this is a Data Source import
redirectStr += "&sysparm_data_source=" + gr.sys_id; // the sys_id of this
redirectStr += "&sysparm_tablename=" + gr.import_set_table_name; // always create the same test
redirectStr += "&sysparm_recreate_table=false"; // we dont want to overwrite existing
redirectStr += "&sysparm_tablelabel=" + gr.name;
redirectStr += "&create_new_module=ON";
redirectStr += "&sysparm_extends=sys_import_set_row"; // always extends this
redirectStr += "&selected_application=import_sets";
gs.setRedirect(redirectStr);
}
0 REPLIES 0