Sync Rule Parameter if reference object exists

Hi!

I am syncing user object to a SQL MA. In one field, i need the Managers employeenumber. So i achieved this with a sync rule Parameter as follows:

[//Target/Manager/employeenumber]

Now there are some user object that have no Manager. It is my understanding that i receive the following eventlog error for that reason:

System.ArgumentException: Cannot deference on non-instantiated Attribute Manager

Can someone give me a hint how i can check if a Manager is present and only then select the employeenumber?

I Vision the following:

IIF(ispresent(//Target/Manager),//Target/Manager/employeenumber,"")

Thanks for your time

Martin


  • Edited by MMuellerM Friday, May 02, 2014 3:43 PM readability
May 2nd, 2014 5:53pm

My approach lately on these has been to do workflows that populate all fields on objects - and then do direct flows where no data manipulation takes place in Sync Rules. Maybe you could have a workflow that populates the managers employeenumber on all objects when the manager changes? For backreferences I sometimes rely on my CopyValue workflow (http://fimactivitylibrary.codeplex.com/)

I know this is not hitting the spot with the Sync Rules, but a slightly different approach.

Free Windows Admin Tool Kit Click here and download it now
May 7th, 2014 1:11am

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

Other recent topics Other recent topics