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
  • Hello. I tried but I got this error.

    [1777156] The following errors occured while compiling:
    
    CS0119: 'System.Linq.ParallelEnumerable.First<TSource>(System.Linq.ParallelQuery<TSource>, System.Func<TSource,bool>)' is a 'method', which is not valid in the given context
    Position: Set-Script of ScriptEditor (VRT_Manager)
    Line: 6 Column: 13
    
    	at VI.Projector.UI.Controls.ScriptControl._Compile()
    	at VI.Projector.Scripting.ScriptProcessor.Process()
    	at VI.Projector.Scripting.ScriptCompiler.Compile(Boolean throwOnError)
    
    

Reply
  • Hello. I tried but I got this error.

    [1777156] The following errors occured while compiling:
    
    CS0119: 'System.Linq.ParallelEnumerable.First<TSource>(System.Linq.ParallelQuery<TSource>, System.Func<TSource,bool>)' is a 'method', which is not valid in the given context
    Position: Set-Script of ScriptEditor (VRT_Manager)
    Line: 6 Column: 13
    
    	at VI.Projector.UI.Controls.ScriptControl._Compile()
    	at VI.Projector.Scripting.ScriptProcessor.Process()
    	at VI.Projector.Scripting.ScriptCompiler.Compile(Boolean throwOnError)
    
    

Children
No Data