User Tools

Site Tools


transform_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
transform_scripts [12/30/2024 06:53] johnsonjohntransform_scripts [12/31/2025 05:42] (current) – removed johnsonjohn
Line 1: Line 1:
-=====Transform Scripts===== 
----- 
  
-====LDAP Transform ====  
-<code> 
-//JWJ0215 2022 
-// The manager coming in from LDAP is the DN value for the manager.   
-// The line of code below will locate the manager that matches the 
-// DN value and set it into the target record. To ignore the manager  
-// from LDAP, remove or comment out the line: ldapUtils.setManager(source, target); 
-// 
-// NOTE: The 'manager' field SHOULD NOT be mapped in the 'Field Maps' related list 
-// if the manager is brought in through an LDAP import.  The 'ldapUtils' scripts 
-// here and in the 'onComplete' Transform Map will map this value automatically. 
-ldapUtils.setManager(source, target); 
- 
-// Set the source LDAP server into the target record 
-target.ldap_server = source.sys_import_set.data_source.ldap_target.server; 
- 
-// Set the u_manager_status boolean 
-if (source.u_extensionattribute11 == '0') { 
- target.u_manager_status = true; 
-} else { 
- target.u_manager_status = false; 
-} 
-</code> 
------ 
- 
-====NEXT ====  
-<code> 
- 
-</code> 
----- 
transform_scripts.1735570397.txt.gz · Last modified: by johnsonjohn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki