Answered iterate to metaverse entries FIM 2010 C#

  • Monday, October 08, 2012 7:31 AM
     
     

    How to Iterate the MVEntries in FIM 2010

    I want to update  the attribute value in Oracle Server table based on the metaverse attribute value.

    Please suggest the C# code.


    Thanks & Regards~ Deepak Arora

All Replies

  • Monday, October 08, 2012 12:01 PM
     
     Answered

    If you want to use code for FIM Sync try this:

      if (mventry["managerID"].IsPresent)                    {

                            MVEntry[] mveManager;

                            mveManager = Utils.FindMVEntries("employeeID", mventry["managerID"].Value); //performs a search

                            //on the managerID or reportsTo field coming in from ERP for entries with that corresponding employeeID

                            if (mveManager.Length == 1)//if we get only one return (which we should)

                            {

                                if (mveManager[0]["adDN"].IsPresent)//if there is the DN on that return

                                {

                                    csentry["manager"].Value = mveManager[0]["adDN"].Value; //set the DN as the manager

                                    break;

                                }

                                else

                                {

                                    break;//dn may not be populated yet - it will occur on the next run

                                }

                            }

                            else

                            {

                                break;//should never happen (employeeID is unique)- we'll fall through if it does

                            }

                        }

                        else

                        {

                            break;

                        }


    Need realtime FIM synchronization and advanced reporting? check out the new http://www.imsequencer.com that supports FIM 2010, Omada Identity Manager, SQL, File, AD or Powershell real time synchronization!

    • Marked As Answer by DeepakArora Thursday, October 11, 2012 5:58 PM
    •