Click or drag to resize

ActivityAssignmentAssignActivityToManager1 Method

Method assigns an activity to the manager(s) of a referred identity (or other data object). The method trows an error is no managers(s) can be found. For Identity and User Calculation where the Identity is a manager of itself. The manager is found at the same level or above.
Codemethod usage
Designed to be used in a process only (Yes/No) Yes
Action Object (data object type) Activity

The target object of the process must have the identityPropertySysName property.

The property must have a reference to either a:

Object typeDescription
Identity Activity is assigned to the manager of the identity.
User Activity is assigned to the manager of the identity which belongs to the user. An error is thrown if the user doesn't have an identity.
Org. unit Activity is assigned to the manager of the org. unit.

Namespace:  Omada.OE.Solution.OIM.Assembly
Assembly:  Omada.OE.Solution.OIM.Assembly (in Omada.OE.Solution.OIM.Assembly.dll) Version: 15.0.0.0
Syntax
C#
public bool AssignActivityToManager1(
	CodeMethodInvokeContext context,
	string identityPropertySysName
)

Parameters

context
Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
identityPropertySysName
Type: SystemString
System name of a single-value reference property for an identity, user or org. unit located on the target object.

Return Value

Type: Boolean
See Also