List of document approval and acquaintance groups

Method that returns all the document approval and acquaintance groups

Script without using PublicAPI
Script text:

Creating a similar script with PublicAPI
Documentation on PublicAPI is available here

Context variables:

context.Doc - variable of the Document type


using EleWise.ELMA.API;
using EleWise.ELMA.Documents.Managers;

Script text:

DocumentTaskGroupManager.Instance.GetGroupsByDocument(context.Doc); // get all the document groups
PublicAPI.Docflow.Tasks.GetAcquaintanceGroupByDocument(context.Doc); // get the document acquaintance groups
PublicAPI.Docflow.Tasks.GetApprovementGroupsByDocument(context.Doc); // get the document approval groups