Label / Go to(Power Automate Desktop)

Japanese version.

An action that moves to an arbitrary position in the flow.
This is similar to "go to," which is considered harmful in programming languages.
It is not present in recent programming languages because it makes the code more complex and prone to many defects.

Power Automate Desktop also has the same disadvantages, so use "Condition","Loop","Exception handling" and "Subflow" whenever possible.

How to use

First, set up a "label" at the move destination and set a label name.

The "Label" is dragged from the "Flow control" in the "Action" menu.

In the following example, the label is named "LabelA".

Next, from "Flow Control" in "Action" menu Next, in the "Flow control" under "Action," drag "Go to" to set the label name of the destination.

In the following example, we move from the 2nd step to the 4th step (LabelA).

The third step is ignored.

This is an easy way to change the flow of actions, but if it becomes intricate, the flow becomes very difficult to understand.

The following flow is an extreme but intricate example.
The "Go to" can easily be made to look like this.

"Go to" can also be used to go backwards.

The numbers in red are the order of execution of the flows.

In the next example, the move from the third step to the first step is continued indefinitely.

Such an infinite loop can easily be created in a way that is difficult to notice.

This is such a problematic function that programming languages do not use it.

Instead, use the functions corresponding to "Condition","Loop","Exception handling" and "Subflow".

In Power Automate Desktop as well, we should avoid using these functions as much as possible.

For those who want to learn Power Automate Desktop effectively

The information on this site is now available in an easy-to-read e-book format.

Or Kindle Unlimited (unlimited reading).

You willl discover how to about basic operations.

By the end of this book, you will be equipped with the knowledge you need to use Power Automate Desktop to streamline your workflow.


Flow control