Skip to main content

HelloID

Code Snippet library

To help you setup the delegated form task we supply our code snippet library. With this you can easily add snippet of codes that are pre-built to do an action on a system.

  1. Go to the delegated form Powershell scriptAdd a PowerShell script to a delegated form

  2. Click on Code snippet library

    DelegatedForm_code_snippet_library.png
  3. On the Code Snippet Library tab, you can search for useful PowerShell snippets to copy & paste into your script. Click a snippet's Copy To Clipboard button to copy it, or alternatively click its title to preview its code, readme, and release notes.

    DelegatedForm_Code_snippet_library_search.png
    Table 1. Search for code snippet

    #

    Name

    Description

    1

    Search term

    Search term you can enter to search in all our code snippets for Delegated form tasks. The best results appear when searching for a system or action.

    2

    Topic filter

    Optional filter to search for code snippets within one of the selected GitHub topic filters

    3

    Description

    In most cases a description of the system the action of the Delegated form tasks for the system (we search based on this field).

    4

    System

    The system for which the action is executed on.

    5

    Release

    The release version (always the latest release). Want to see more release please visit our public github repositories: Tools4ever BV Github

    6

    Release date

    The date of which the release is created and therefore the code has it's last change.

    7

    Copy to clipboard

    Use this to copy the script of the Delegated form tasks to your clipboard so you can paste it in the code editor and therefore use this prebuilt Delegated form tasks.



  4. Click on a snippet (in our example "Active Directory - Group get account memberships")

  5. More information about the code snippet is given:

    • The code snippet (The actual code which can be paste in your code editor and can be used to inspect the code before using it)

      DelegatedForm_Code_snippet_library_code.png
    • The readme (A short description of what to expect from this delegated form task code snippet and what the requirements are)

      DelegatedForm_Code_snippet_library_readme.png
    • Release notes (The changes and bug fixes of the latest release when available)

      DelegatedForm_Code_snippet_library_release_notes.png
  6. Click on Code snippet

  7. Click on Copy to clipboard

  8. Go back to your Powershell editor

  9. Paste inside the editor

  10. Change scripting according your desire

A delagated form task configurated based on a code snippet from the HelloID library