List of document approval and acquaintance groups

A method that returns all the document approval and acquaintance groups.

Script with PublicAPI

Note
Documentation on PublicAPI is available here
Attention
The script below is relevant for ELMA up to 3.12.1 inclusive.

Context variables:

context.Doc - variable of the Document type

Namespaces:

using EleWise.ELMA.API;
 Script text:
PublicAPI.Docflow.Tasks.GetAcquaintanceGroupByDocument(context.Doc); // get the document acquaintance groups
PublicAPI.Docflow.Tasks.GetApprovementGroupsByDocument(context.Doc); // get the document approval groups

Script without PublicAPI

Namespace:

using EleWise.ELMA.Documents.Managers;
 

Script text:

var acquaintanceTaskGroups = AcquaintanceTaskGroupManager.Instance.GetGroupsByDocument(context.Doc); // get the document acquaintance groups
var approvementTaskGroups = ApprovementTaskGroupManager.Instance.GetGroupsByDocument(context.Doc); // get the document approval groups