This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Identity Manager - C# Mapping Script Documentation

I need to port the following VB script to C# because I can't change connector scripting language anymore.

I can't find any documentation about that. Any help? Thanks

Imports VI.Projector.Connection
Dim dn AS String
dn = SystemObject.Connection.QueryObject(SystemQuery _
 .From("ADSAccount") _
 .Select("DistinguishedName") _
 .Filter(String.Format("SAMAccountName='{0}'", $VRT_Manager$))) _
 .Result.First.GetValue("DistinguishedName").AsString
return dn

Parents
  • Also, I can tell there is at least one syntax error.  It's stripping the $<parameter>$.  So this is closer:

     string dn;
        dn = SystemObject.Connection.QueryObject(SystemQuery.From("ADSAccount").Select("DistinguishedName").Filter(string.Format("SAMAccountName='{0}'", $VRT_Manager$))).Result.First.GetValue("DistinguishedName").AsString;
        return dn;

    And Markus is right, at this point Visual Studio is your friend.

Reply
  • Also, I can tell there is at least one syntax error.  It's stripping the $<parameter>$.  So this is closer:

     string dn;
        dn = SystemObject.Connection.QueryObject(SystemQuery.From("ADSAccount").Select("DistinguishedName").Filter(string.Format("SAMAccountName='{0}'", $VRT_Manager$))).Result.First.GetValue("DistinguishedName").AsString;
        return dn;

    And Markus is right, at this point Visual Studio is your friend.

Children
No Data