SncTriggerSynchronizer.executeNow(rec); not working in scoped application
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-06-2024 07:45 AM - edited ā03-06-2024 07:46 AM
Hi team,
I am working in scoped application i want to execute a schedule job by using inbound action where this is not working in scoped
SncTriggerSynchronizer.executeNow(rec);
i am getting log
gs.info("&&&1.4 ");
gs.info("&&&2 " + rec.run_as);
but i am not getting log -----
gs.info("&&&3 " + userEmailSysID);
My code:
var rec = new GlideRecord('scheduled_import_set');
rec.get('name', 'Disney Import eDiscovery Custodian LMM');
rec.run_as = userEmailSysID;
rec.update();
gs.info("&&&1.4 ");
gs.info("&&&2 " + rec.run_as);
SncTriggerSynchronizer.executeNow(rec);
gs.sleep(2000);
gs.info("&&&3 " + userEmailSysID);
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-06-2024 10:07 AM
gs.executeNow() will Work in Scoped Apps but not Sure what's the Issue , So I would recommend the Similar Process which Swathi have Mentioned
Script Include :
var Test = Class.create();
Test.prototype = {
initialize: function() {
},
schedule : function (){
var rec = new GlideRecord('scheduled_import_set');
rec.get('name', 'Disney Import eDiscovery Custodian LMM');
rec.run_as = userEmailSysID;
gs.info("&&&1.4 ");
gs.info("&&&2 " + rec.run_as);
gs.executeNow(rec);
gs.info("&&&3 " + userEmailSysID);
},
type: 'Test'
};
In your Inbound Call Script Include with this Syntax
global.scriptincludeName().functionName();
Regards,
Shyamkumar
Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,
Shyamkumar
Regards,
Shyamkumar