MarketplaceStudioSolutionProject Documentation using PowerShell

Create your first automation in just a few minutes.Try Studio Web

Project Documentation using PowerShell

Project Documentation using PowerShell

by Jeevith Hegde

StarStarStarStarStarStarStarStarStarStar

0

Solution

Downloads

<100

back button
back button
carouselImage0
next button
next button

Summary

Summary

A script which automates the process of documenting a UiPath project and presents the output in a HTML file.

Overview

Overview

Problem Statement: It is difficult to get an overview of projects after the development phase. Solution designers and reviewers can benefit from a script, which can easily provide an overview of the workflows developed in the project.

Solution: This script iterates through the project folder. For each workflow found, it extracts important design details, such as name of the workflow, variables, arguments and imports used. The output HTML is saved in a human readable format.

Usage 1 - Using the sample project provided:

  1. Clone the GitHub repository / Download the .ps1 file.
  2. Navigate to the cloned repository.
  3. Run the DocumentationUiPathSampleProject.ps1 file in PowerShell.
  4. The output HTML file will be saved in the cloned repository location.

Usage 2 - Using one of your projects:

  1. Clone the GitHub repository / Download the .ps1 file.
  2. Navigate to the cloned repository.
  3. Open the DocumentationUiPathSampleProject.ps1 file in any preferred IDE.
  4. Comment out the line which calls the function DownloadSampleFromUiPathForum.
  5. Edit or Replace the $ProjectPath variable with the location of your project.
  6. Run the DocumentationUiPathSampleProject.ps1 file in PowerShell.
  7. The output HTML file will be saved in the cloned repository location.

The output of the script for a sample project can be viewed in this GitHub link.

Features

Features

  1. Read the workflow files in the project recursively and provide filtering options to limit certain files or folders.
  2. Get name of the workflow and the annotation of the workflow.
  3. Get workflow variable details --> variable names, variable scope, variable annotations and variable types.
  4. Get workflow argument details --> argument names,  argument annotations and argument direction and types.
  5. Get imports and/or assembly references used in the workflow.
  6. Save the output to an HTML file.

Additional Information

Additional Information

Dependencies

1. PowerShell version > 5.1.19041.1645 2 .Depending on your PowerShell access level, you may need to ensure that the execution policy is changed accordingly. Read more on how to set execution policy in the official Microsoft documentation : https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.2.

Code Language

Visual Basic

Publisher

Jeevith Hegde

Visit publisher's page

License & Privacy

MIT

Privacy Terms

Technical

Version

1.0

Updated

May 17, 2022

Works with

Studio: 22.4.1 - 22.10

Certification

Silver Certified

Application

Microsoft PowerShell

Support

UiPath Community Support

Resources

Similar Listings