Cross-Scope Access Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi All,
We are facing a cross-scope access error when using @mention in Work Notes or Additional Comments on tables that are created in a custom application scope (EITG) and extend from the Task table (Global scope).
Error message:
Access to API 'setWorkflow' from scope 'x_weoi2_eitg_conf' has been refused due to the API's cross-scope access policy.
Access Details: setWorkflow can only be called from within the same Scope as the Table on which it is called.
Table's Scope was: "Global", but executing Scope was: "EITG".
What we checked:
- This happens only when an @mention is added in Work Notes or Additional Comments.
- Occurs in both DEV and PROD with any user.
- We searched all Business Rules, Script Includes, UI Actions, and Flows in our app scope (EITG). Only one Script Include had a setWorkflow(false) line, which we commented, but the error still persists.
- It seems the error is triggered by the OOB @mention journal field processor, not by our custom code.
Our Question:
- Has anyone else faced this issue on scoped Task extensions?
- Is there a recommended workaround to handle @mentions without hitting the cross-scope setWorkflow restriction?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
did you check "Restricted caller access" for your scope, there should be "invalidated or requested" records.
You will have to mark them as allowed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@RaghavSh
Thank you for the response
Yes, I have checked "Restricted caller access", and everything is allowed, but still it is not working.
What could be the reason and any solution for this.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
screenshot cannot be seen clearly.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @Ankur Bawiskar ,
Please find the above screenshot..
Thank you