How to make useful Libraries(Reusable components)

A Library is a collection of reusable components. A reusable component is a workflow invoked as an activity in multiple processes. It’s powerful because it decreases the development time, saves time from debugging because ones it’s done you just use it in the projects that you need and your team doesn’t need to invest again the time for solving a specific problem.

When we think of reusable components - we need to think how we can create them as functionalities. When creating a library we don’t want that library to be for a specific bot or group of bots. We want to create it in a way that the developer can use it in every project that he needs.

I believe that a good practice for creating libraries is to split them based on application/system.
ex: WordActivitiesLibrary or MailActivitiesLibrary.
This way the developers will know what to expect when they install your library.

The second important thing we can do is to create the specific reusable component dynamically as possible!
How we do that?

  • by making a .xaml file for only one action. ex: ExcelWrapText ex: ExcelChangeFont ex:ReadWindowsInputLanguage
  • by creating good logic with proper error handling that will give us error stored in output argument if there’s one.

If you want to learn more about libraries and how we can make the most of them check out my tutorial:

4 Likes

Hello @bobevrosen!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff