- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
can we call script include in scoped application from schedule job in global scope ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @NegiSNOW ,
This can be possible but depend upon how script include is configured.
1. If it is Accessible form - "This Application Scope Only" then it can't be called directly from Global Schedule Job. Attached screenshot as your references.
2. You need to change script include Accessible form - "All Application Scope " then it can be called directly from Global Schedule Job. Attached screenshot as your references.
Recommended approach - As script include in scoped application call schedule job from scop application instead of Global Application.
Please mark helpful & correct answer if it's worthy for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @NegiSNOW , Yes, you can do that. Take care of the followings:
- Accessible from is selected as "All application scopes"
- While calling the scoped Script Include, include application name before it
- Calling this code for the first time may trigger a Cross-Scope Access restriction. If triggered, accept the status of this generated tracking record is set to allowed.
You can refer following threads for the examples:
https://www.servicenow.com/community/developer-forum/how-to-call-a-scoped-script-include-from-global...
Regards,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Absolutely, but you need to make sure you have configured the "accessible from" field in script include.
CSA | CAD | DF | DISCO | ITIL4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Can you give me example of such cases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @NegiSNOW ,
This can be possible but depend upon how script include is configured.
1. If it is Accessible form - "This Application Scope Only" then it can't be called directly from Global Schedule Job. Attached screenshot as your references.
2. You need to change script include Accessible form - "All Application Scope " then it can be called directly from Global Schedule Job. Attached screenshot as your references.
Recommended approach - As script include in scoped application call schedule job from scop application instead of Global Application.
Please mark helpful & correct answer if it's worthy for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @NegiSNOW , Yes, you can do that. Take care of the followings:
- Accessible from is selected as "All application scopes"
- While calling the scoped Script Include, include application name before it
- Calling this code for the first time may trigger a Cross-Scope Access restriction. If triggered, accept the status of this generated tracking record is set to allowed.
You can refer following threads for the examples:
https://www.servicenow.com/community/developer-forum/how-to-call-a-scoped-script-include-from-global...
Regards,
Nishant