🎯 UiPath Tutorial: Using the Pick Activity

Author : Franck MONGO. - Intelligent Process Automation Consultant
Using generative AI, I enhance RPA developers’ daily tasks with my tools, available at https://linktr.ee/ipacopilot

:rocket: Introduction

In this tutorial, we will be exploring the Pick Activity in UiPath, a powerful tool that allows developers to handle multiple activities that are based on event triggers. We will delve into its properties, how to use it, and provide practical examples. We will also provide troubleshooting tips to help you resolve common issues that you might encounter when using the Pick Activity.

Screenshot_Activity

:gift: What is the Pick Activity

The Pick Activity in UiPath is an event-driven activity that waits for one or more specified activities to be triggered. It contains multiple branches, each with a trigger and an associated activity. When a trigger event occurs, the Pick Activity executes the associated activity and then stops listening for other events. This makes it a useful tool for handling multiple potential events in a workflow.

:hammer_and_wrench: Properties of the Pick Activity

The Pick Activity has the following key properties:

  • DisplayName: The name displayed for the activity in the Designer panel.
  • Branches: The branches that contain the triggers and their associated activities. Each branch represents a possible event and the action to be taken when that event occurs.

:compass: Using the Pick Activity: A Step-by-Step Guide

Let’s now dive into a step-by-step guide on how to use the Pick Activity in UiPath Studio.

Here is a diagrammatic representation of how the Pick Activity works :

Diagram_Step

In the diagram above:

  1. The Developer creates a Pick Activity in UiPath Studio.
  2. The developer configures the properties of the Pick Activity, such as the Branches.
  3. The Pick Activity waits for a trigger event from the UI elements.
  4. When a trigger event occurs, the Pick Activity executes the associated activity.

:dart: Practical Examples of the Pick Activity

Here are some practical examples of how the Pick Activity can be used in UiPath:

  • Monitoring Multiple UI Events: The Pick Activity can be used to monitor multiple UI events and execute specific actions based on the event that occurs first. For example, you can configure the Pick Activity to perform different actions depending on whether a button is clicked or a checkbox is checked on a web page.
  • Handling Multiple File System Events: The Pick Activity can also be used to handle multiple file system events. For example, you can configure it to perform different actions depending on whether a file is created, modified, or deleted in a specific directory.

:bar_chart: Diagrammatic Representation of Troubleshooting Tips for the Pick Activity

This diagram should always contain conditions. With regard to the most common types of error, we suggest the following resolution tips.

Diagram_Debug

In the diagram above:

  1. Start with the Pick Activity.
  2. Check if the triggers in the Pick Activity are set up correctly. If not, correct the triggers.
  3. Check the order of the branches in the Pick Activity. If it’s not correct, correct the order of the branches.
  4. If the Pick Activity is not working as expected, adjust the timeout period or the properties of the individual activities within the branches.
  5. Handle exceptions within the Pick Activity to prevent the entire workflow from stopping when an error occurs

:checkered_flag: Conclusion

The Pick Activity is a powerful tool in UiPath that allows developers to handle multiple potential events in a workflow. By understanding its properties and how to use it effectively, you can create more robust and flexible automations. Happy automating !

Author : Franck MONGO. - Intelligent Process Automation Consultant
Using generative AI, I enhance RPA developers’ daily tasks with my tools, available at https://linktr.ee/ipacopilot

1 Like