NotEquals function with IIF in FIM

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

June 19th, 2015 8:02am

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.

Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 9:49am

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

June 19th, 2015 10:12am

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

Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 11:52am

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

June 19th, 2015 1:10pm

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?

Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 1:15pm

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

June 19th, 2015 1:33pm

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?

Free Windows Admin Tool Kit Click here and download it now
June 19th, 2015 1:39pm

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

June 19th, 2015 2:11pm

Hi Paolo,

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

Regards,

Veena

Free Windows Admin Tool Kit Click here and download it now
June 22nd, 2015 3:42am

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

June 22nd, 2015 3:44am

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

Free Windows Admin Tool Kit Click here and download it now
June 22nd, 2015 3:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics