Custom script does not appear in Test script drop down box

Hello,

i created CCC_HelloWorld, saved and compiled it.

In Test script - Tab there is a drop down box to choose which script to test.

CCC_HelloWorld does not appear there.

How to solve that?

Thanks - Michael

Parents Reply Children
  • We do not have Visual Studio at my company at this moment. i asked for it but for the moment we won't have it.

    This is how i created the HelloWorld:

    a) Open the Designer-Tool of One Identity.
    b) Check Version of Designer at Help -> Info. This instruction was written for 9.1. If your version differs, some details may differ. Close the "About" ( Help -> Info ) windows with "Done".
    c) Script Library is used to manage scripts. Click on "Script Library" in the left bottom.
    d) In the "Navigation" view on the left top expand and click on "Customscripts".
    e) Click on "create a new script" on the right top.
    f) Type "CCC_HelloWorld" as the name of the script, next to the label "Script". CCC is used as a prefix of custom scripts. It is a non obligatory but should convention to do so, to seperate custom scripts from system scripts.
    g) You may want to type a description of your script in the corresponding box. This is important if you do complicated scripts in future. For this time we can skip this.
    h) Identity Manager uses VB.Net code in scripts. Copy the following code into the big text box in the middle of your screen, which is meant to receive the scriptcode.

    ' Function Without Return
    
    Public Sub Hello_world_MsgBox()
         MsgBox("Hello World")
    End Sub
    
    ' Function with Return
    
    Public Function Hello_World_String() As String
    
        Return "Hello World"
    
    End Function

    i) click on "Save Script"-Button or Script -> Save.
    j) click on "Compile Script in Designer"-Button or Script -> Compile Script or hit F9.

    One Identity Manager Script compiler will load and do the work automatically.
    If in the bottom of the screen "Scripts compiled successfully (date time)" appears then all is okay, otherwise try to solve the compiling errors.

    k) To test the script klick on "Test script"-Tab on the bottom of the screen or if there is no "Test script"-Tab then click on View -> Test script
    l) maybe you have to rearange the size of the sub-windows "Test script" so see the whole view.
    m) on the top of the view "Test script" find the drop down box and choose "CCC_HelloWorld".

    (Tutorial written by myself except the code)

    Fails at m) because there is no CCC_HelloWorld. See this screenshot:

    [url=https://ibb.co/CMLq9DT][img]i.ibb.co/.../url]

    https://ibb.co/CMLq9DT

    <a href="">ibb.co/CMLq9DT"><img src="">i.ibb.co/.../Hello-World-is-not-listed-in-available-scripts.png" alt="Hello-World-is-not-listed-in-available-scripts" border="0"></a>

    Thanks - Michael

    (In the meanwhile i have refreshed the Navigation pane to let you see that my customscript is listed there.)

  • You need to search for the VB(.NET) functions or procedure names in the script tester, so Hello_...

    The "script name" (CCC_HeloWorld) is just the name for the script object that is stored in the repository of OneIM.

    The small size of the combobox in the Script Tester is a known issue and a fix is part of our backlog (VPR#36085).

  • Okay that was the solution.

    It was misleading that the script is called CCC_BuildCentralAccount and the function in this script is called CCC_BuildCentralAccount as well.

    Happens if you (me) are a newbee and trying the first time ;)

    Thanks - Michael