The CreatorCon Call for Content is officially open! Get started here.

Cross-Scope Access Error

VullankiL
Tera Contributor

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?

 

VullankiL_0-1758180727416.jpeg

 

8 REPLIES 8

RaghavSh
Kilo Patron

did you check "Restricted caller access" for your scope, there should be "invalidated or requested" records.

You will have to mark them as allowed.


Raghav
MVP 2023
LinkedIn

@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


Ankur Bawiskar
Tera Patron
Tera Patron

@VullankiL 

screenshot cannot be seen clearly.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

VullankiL_0-1758697077511.png
Hi @Ankur Bawiskar ,
Please find the above screenshot..

Thank you