Returns the entire distinguished name of the current instance. This expression is used when mapping fields for an LDAP connection. Only use this function in the LDAP expression field mappings.



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 Yes2
Business Rules: Validation Rules Yes2
Client Expressions No
Object Permissions No
Services Yes
Mobile Yes
Quick Actions (except UI Quick Actions) No
UI Quick Actions No
Reports Yes1
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.


Parameter Description

(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.


For the LDAP entry CN =John Doe, OU=Developers, OU=Personnel, DC=Company, an example of using the DN function is:

Department = $(if(DN(1) == 'Developers' then 'Research & Development' else 'IT')