skip to content
Federico's Blog
Table of Contents

The problem

Came back from holidays and lots of your hashtag#PowerAutomate workflows have been turned off due to 14 days of inactivity? Donโ€™t activate them manually, solve the problem withโ€ฆ another automation ๐Ÿคช

Note

In this case Iโ€™ll show a solution based on an environment with Dataverse.

Solution

1- List rows from the โ€œ๐—ฆ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป๐˜€โ€ table and filter ๐˜†๐—ผ๐˜‚๐—ฟ๐—ฆ๐—ผ๐—น๐˜‚๐˜๐—ถ๐—ผ๐—ป๐—š๐—จ๐—œ๐—— and the component type (๐Ÿฎ๐Ÿต is a Cloud Flow).

2- For each result โ€๐—š๐—ฒ๐˜ ๐—ฎ ๐—ฟ๐—ผ๐˜„ ๐—ฏ๐˜† ๐—œ๐——โ€ from the selected environment and the table โ€œProcessesโ€; where the Row ID is the โ€๐—ผ๐—ฏ๐—ท๐—ฒ๐—ฐ๐˜๐—œ๐——โ€ obtained from the previous step.

3- Check with a condition if the โ€œ๐—ฆ๐˜๐—ฎ๐˜๐—ฒ ๐—ฐ๐—ผ๐—ฑ๐—ฒโ€ obtained from the previous step is not equal to 1 (1 equal to โ€œActiveโ€) and if not activate the flow using the โ€œTurn on flowโ€.

Tech tip

In the โ€œTurn on flowโ€ action use the flow ID (aka โ€œobjectIDโ€) instead of the Flow name ๐Ÿ˜‰

Demo Video

LinkedIn relative post

https://www.linkedin.com/posts/federicotosetto_powerautomate-activity-7414657996196159489-UnEX?utm_source=share&utm_medium=member_desktop&rcm=ACoAACKJlEABegKcSpQKizAvOzyH46f6JvcIZbM