none
Create Mangement Agent Rule Extension in .vb net steps by steps

    דיון כללי

  • Hi

    I want to create one management agent in vb.net.

    i want to export metaverse(FirstName value) in AD attribute(info) if firstname have the value "Anil" then this export in ad attribute(info) value "Arun".we did write code in mapattribiteforexport function

    and map attribute with "info" to "firstname" with maping type advance and flowdirection export.

    Public Sub MapAttributesForExport(ByVal FlowRuleName As String, ByVal mventry As MVEntry, ByVal csentry As CSEntry) Implements IMASynchronization.MapAttributesForExport

    Select Case FlowRuleName

    Case "ExportFirstName"

    If mventry("firstName").Value = "Anil" Then

    csentry(

    "info").Value = "Arun"

    End If

    ' TODO: remove the following statement and add your scripted export attribute flow here

    'Throw New EntryPointNotImplementedException()

    'Case Else

    ' TODO: remove the following statement and add your default script here

    'Throw New EntryPointNotImplementedException()

    End Select

    End Sub

    Regards

    Anil Kumar

    יום חמישי 14 יוני 2012 07:55

כל התגובות

  • hi Anil,

    the code looks fine. What's your problem / question ?


    /Matthias

    יום חמישי 14 יוני 2012 08:02
  • If you are flowing "info" to "firstname" via an export flow rule, then your code is written backwards...looks like you are flowing firstName to info.  Check to make sure one of them isn't flipped...your code and the MA configuration.  If your code throws errors, also check to make sure the FlowRuleName of "ExportFirstName" is set correctly in your advanced export rule, and post the error message you get if it all looks correct to you.

    Chris

    יום חמישי 14 יוני 2012 17:08