List of document approval and acquaintance groups

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

Script with PublicAPI

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

Context variables:

context.Doc - variable of the Document type


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


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