Service Manager

Home 

ParseDn

Parses a distinguished name. Only use this function in the LDAP expression field mappings.

Syntax

ParseDn(dn,index)

Enabled For

For a description of the business object categories, see Notes on "Enabled For".

Business Object Category Yes/No
Business Rules: Before-Save Rules No
Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load) No
Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load) No
Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load) No
Business Rules: Editing Rules No
Business Rules: Initialization Rules No
Business Rules: Read Only Rules No
Business Rules: Required Rules No
Business Rules: Validation Rules No
Client Expressions No
Object Permissions No
Services No
LDAP Yes
Mobile No
Quick Actions (except UI Quick Actions) No
UI Quick Actions No
Reports No
Search/Dashboard without field references No
Search/Dashboard with field references No
1. Except in services.
2. Except in services and when this field appears on a form or is triggered by such a field.

Parameters

dn Distinguished name of the form k1=v1, k2=v2, k3=v3, ..., kn=vn
index

(Optional) The zero-based segment of the distinguished name to return.

NOTE: If you omit this parameter, if the parameter is less than zero, or if the parameter is greater than or equal to the number of segments, the application returns the entire distinguished name.

Return Value

Unicode text value.

Example

$(ParseDN("CN=Paul Stedman,OU=Disabled,OU=Users,OU=California,DC=na,DC=frs", 0))

returns "Paul Stedman"

$(ParseDN(manager, 0))

ParseDN() Example


Was this article useful?