Issue
Adding/Removing areas to personnel objects via XSTL file in Personnel Import Utility
Product Line
Andover Continuum
Environment
- CyberStation
- Personnel Import Utility
- CX99xx
- CX9702
- CX9680
- ACX57xx
- ACX7xx
Cause
Need a way to add/remove areas to personnel objects via the XSLT transformation file in the Personnel Import Utility.
Resolution
Use the choose/when tags to conditionally assign the area based on the value of another attribute.
In the example below the Lab1 area is ONLY assigned to personnel objects whose state of residence is Massachusetts while the Lobby area is assigned unconditionally.
This method can also be used to remove areas from the personnel object, as the record is completely overridden on import, not assigning an area has the same effect as removing it.
<AreaLinks> <AreaLink> <AreaId><![CDATA[Root\Lobby]]></AreaId> <SchedId>Full Path To Schedule Here</SchedId> <State>Enabled</State> <Preload>False</Preload> <ClearanceLevel>0</ClearanceLevel> </AreaLink> <xsl:choose> <xsl:when test="StateOfResidence='Massachusetts'"> <AreaLink> <AreaId><![CDATA[Root\Lab1]]></AreaId> <SchedId>Full Path To Schedule Here</SchedId> <State>Enabled</State> <Preload>False</Preload> <ClearanceLevel>0</ClearanceLevel> </AreaLink> </xsl:when> </xsl:choose> </AreaLinks>