Skip to content

$Membership.FindPosition

Overview

Identity[] $Membership.FindPosition ( position, organizationUnit, [ direction = 'Up' ] )

Returns list of available positions by name. Empty positions (no active employee exist) are not returned by this function.

Arguments

Identity | String position Position to find.

Identity | String organizationUnit Organization unit context to find search on.

Identity | String organizationUnit Specifies the search direction. Optional but can be set to one of following values.

Up Search on specified organization unit and upper units. (Default)

Down Search on specified organization unit and below units.

None Search only on specified organization unit.

Remarks

Empty positions with no employee are not returned by this function even position is defined.

If organization unit provided position only search with specified unit scope. Direction parameter specifies the scope of search.

Examples

Find "Accounting Specialist" on current organization.

var positions = $Membership.FindPosition('Accounting Specialist');

Find "Accounting Specialist" on "General Management" department.

var positions = $Membership.FindPosition('Accounting Specialist', 'General Management');

See Also