none
IIF(IsPresent... function works with OOB Function Evaluator but not with "Generate Unique Value" within FIM WAL RRS feed

  • Question

  • Hi,

    Just wanted to share the following strange behavior when using the similar IIF(IsPresent.. function both in OOB FIM Function Evaluator and "Generate Unique Value" in FIM WAL.

    This one certainly works in OOB FIM Function Evaluator:

    IIF(IsPresent(MiddleName),FirstName+" "+MiddleName+" "+LastName,FirstName+" "+LastName)

    This one is not recognized as valid parameters in FIM WAL´s "Generate Unique Value":

    IIF(IsPresent([//Target/MiddleName]),[//Target/FirstName]+"."+[//Target/MiddleName]+"."+[//Target/LastName],[//Target/FirstName]+"."+[//Target/LastName])

    On the other hand, when simplified, it also works in FIM WAL´s "Generate Unique Value" (without concatenated values in expression):

    IIF(IsPresent([//Target/MiddleName]),[//Target/WhatEverAttribute],[//Target/AnotherAttribute])

    In case someone else is using FIM WAL as well, could you share your thoughts how to make this work on FIM WAL? As for now it seems it is not possible to use concatenation of values within IIF(IsPresent.. function same way as with OOB Function Evaluator.

    Friday, April 10, 2015 10:34 AM

All replies

  • I believe this has to do with the string construction format. 

    Try something like this:

    IIF(IsPresent([//Target/MiddleName]),""+[//Target/FirstName]+"."+[//Target/MiddleName]+"."+[//Target/LastName]+"",""+[//Target/FirstName]+"."+[//Target/LastName]+"")


    Nosh Mernacaj, Identity Management Specialist


    Friday, April 10, 2015 5:42 PM