The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Trigger Approval WorkFlow from scoped non Task table

MattSN
Mega Sage
Mega Sage

Does anyone know how to trigger an approval for a scoped app within a non task table?

There is a good article here the describes how only Workflow, and specifically, only the Approval - User activity can manage approvals on non-Task records.

https://community.servicenow.com/community?id=community_blog&sys_id=0bcda2e9dbd0dbc01dcaf3231f96198d

The catch is, how do you call it from scoped app because that also has limitations. Example, extend the contracts table "ast_contract" and then try to submit for review. The response will be "Invalid attempt to run privately scoped workflow 'Contract Approval'".

2 REPLIES 2

Sai Kumar B
Mega Sage
Mega Sage

Hi,

Please follow this official Documentation (Workflow Restrictions section) - Workflow scope restrictions

During runtime, publicly scoped workflows can access other application resources, as long as these resources are set to be accessible to all application scopes. Privately scoped workflows in a private application scope can only access resources private to its scope. Due to scope access boundaries, any privately scoped workflows that make calls out to other scoped resources fail with either an exception or a hung activity while waiting for returned results. This occurs when making calls to these common global resources:
  • ECC queues
  • Tasks
  • Approvals
  • Events
  • SLA timers
  • Timers
  • Script includes
  • Business rules
  • Workflow APIs

As you design workflows, validate the visibility and accessibility of all resources prior to deployment.

Regards,
Sai Kumar

 

I also read this article and yes, you cannot call global approval workflows across from a scope. So what is the strategy for adding an approval workflow to a scoped app?