- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2016 02:38 PM
Has anyone seen this issue when scheduling a workflow within a scoped application?:
WorkflowScheduler undefined, maybe missing global qualifier
My workflows and activities are all created on a scoped app. Is it possible to create a Workflow Schedule and alter the back-end call? In log I see the line failing is:
var ws = new WorkflowScheduler(); ws.run();
I do not see a way to change this call from the Workflow Schedule table, however. Pretty certain the solution would be to make the call "new global.WorkflowScheduler();", however I do not see a place to change this script from the Workflow Schedules table.
The end goal is to schedule the workflows that are in the scoped app to run every X minutes.
Regards,
Neema
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2016 01:02 PM
Hi Neema,
Can you please try with below script
if (current.sys_scope.getDisplayValue() == 'Global') current.script = "var ws = new WorkflowScheduler();
ws.run();";
else current.script = "var ws = new global.WorkflowScheduler();
ws.run();";
Please put few log statements and check which line is getting executed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2016 01:03 PM
Seems to have worked after adding the if/else and re-creating the Workflow Schedule.
Will modifying Global records have an impact on scoped app certification?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2017 11:06 AM
I don't think it's good idea to modify Global records from Application scope. Update would not be captured in Application scope update set/ team development.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2017 11:21 AM
is there a patch that will fix this ?