none
NotEquals function with IIF in FIM RRS feed

  • Question

  • Hi,

    Can someone tell me if NotEquals function is supported with IIF or not in FIM 2010 R2? I tried using NotEquals but landup with error "NotEquals is not recognized as a supported function". Is there any other alternative to check not equal?

    Any kind of help is appreciated.

    Thanks,

    Veena

    Friday, June 19, 2015 8:02 AM

All replies

  • Hi Veena,

    NotEquals should be supported, according to the Functions Reference (check the "Inputs" part for the IIF function), I tried it quickly and the rule was accepted.

    Maybe you are having another issue with the expression parsing, could you please provide more details about how you are trying to define your attribute flow?

    Alternatively, instead of defining your expression as

    IIF(NotEquals(x, y), do_something, do_something_else)

    you could try with

    IIF(Eq(x, y), do_something_else, do_something)

    which should be equivalent.


    Paolo Tedesco - http://cern.ch/idm

    Friday, June 19, 2015 9:49 AM
  • Hi Paolo,

    Thanks for your quick response.

    I am trying to use the expression in "Update Resources" activity in FIM workflow. Below is a sample of the code I am trying

    IIF(IsPresent([//Target/Manager]),IIF(Eq([//Target/Manager/EmpStatus],"ACTIVE"),IIF(Eq([//Target/EmpType],"EMPLOYEE"),IIF(NotEquals([//Target/Manager/MgrLevel],"A5"),[//Target/Manager],null()),null()),null()),null())

    So what we require here is if Target's manager is present, if empstatus=active, if employeetype=employee and if MgrLevel is not equal to A5, then assign Target/Manager to the destination attribute.

    But when I try this and save the activity I get "Not Equals is not recognized as a supported function".

    Am doing something wrong here?

    Thanks,

    Veena

    Friday, June 19, 2015 10:12 AM
  • Hi Veena,

    Sorry, I thought you were talking about synch rules.

    Are you developing a custom activity?

    Otherwise, where do you get this Update Resources activity from?


    Paolo Tedesco - http://cern.ch/idm


    Friday, June 19, 2015 11:52 AM
  • Hi Paolo,

    Update Resources activity is one of the options you get listed down when you tend to opt for an Action Workflow.

    Workflow-->Action WF-->Add Activity-->Update Resources.

    When I try using it here, it fails.

    Can you try from your end and let me know if this is supported. I tried in various ways but could not use NotEquals function.

    Please let me know.

    Thanks,

    Veena

    Friday, June 19, 2015 1:10 PM
  • Hi Veena,

    I don't see the "Update Resources" activity when I create a new workflow...

    Which FIM version are you using? I have 4.1.3510.0.

    Did you install some custom activities?


    Paolo Tedesco - http://cern.ch/idm

    Friday, June 19, 2015 1:15 PM
  • Hi Paolo,

    I am using 4.1.3496.0

    Unable to attach screenshot:(:(

    and I am not sure if any custom activity is installed. Any way to verify?

    Regards,

    Veena

    Friday, June 19, 2015 1:33 PM
  • Could you please

    1) go to Administration -> All Resources -> Activity Information Configuration

    2) click on the "Update Resource" activity

    3) check the "Extended Attributes" tab and let me know what it says in Activity Name / Assembly Name?


    Paolo Tedesco - http://cern.ch/idm

    Friday, June 19, 2015 1:39 PM
  • In your expression, instead of:

    IIF(NotEquals([//Target/Manager/MgrLevel],"A5"),[//Target/Manager] ...

    have you tried this?

    IIF(Not(Eq([//Target/Manager/MgrLevel],"A5")),[//Target/Manager] ...


    Bob Bradley (FIMBob @ TheFIMTeam.com) ... now using FIM Event Broker for just-in-time delivery of FIM 2010 policy via the sync engine, and continuous compliance for FIM

    Friday, June 19, 2015 2:11 PM
  • Hi Paolo,

    Assembly Name states : FIM.Workflow.Common, Version=2.0.0.0, Culture=neutral, PublicKeyToken=<Number&String combination>

    Regards,

    Veena


    Veena

    Monday, June 22, 2015 7:40 AM
  • Hi Bob,

    IIF(Not(Eq([//Target/Manager/MgrLevel],"A5")),[//Target/Manager]  seemed to work.:):) Thanks a ton for your response and help.

    This solution should definitely be added in TechNet forum.

    Regards,

    Veena


    Veena

    Monday, June 22, 2015 7:42 AM
  • Hi Paolo,

    As Bob suggested IIF(Not(Eq([//Target/Manager/MgrLevel],"A5")),[//Target/Manager]  seemed to work.:):)

    I sincerely thank you for your time and appreciate your help:)

    Regards,

    Veena


    Veena

    Monday, June 22, 2015 7:43 AM
  • I did not know that "FIM.Workflow.Common" library...

    Do you know where does it come from?


    Paolo Tedesco - http://cern.ch/idm

    Monday, June 22, 2015 7:48 AM
  • No Paolo, I am not sure.:( I am assuming its custom one developed for the organization and not OOB. If I find something will surely updated in this post.

    Thanks,

    Veena


    Veena

    Monday, June 22, 2015 8:17 AM