ftos.context.setAdminMode

IMPORTANT!  
Starting with v24.3.0, this is renamed from setAdminMode to ftos.context.setAdminMode.

Sets or unsets the context of the current transaction as administrator. This allows the workflow to temporarily affect entities that are not included in the security role. Also see ftos.context.getAdminMode.

This is a method suitable for all business service components.

Syntax

function ftos.context.setAdminMode(isAdminMode: boolean): void
 
Parameter Description
ftos.context.setAdminMode
  • true – sets the administrator transaction context.
  • false – unsets the administrator transaction context.

Examples