What is Tracked Properties in Power Automate

Introduction

  • In this article, we will learn what is Tracked Properties in Power Automate, how it is useful, and how we can use it.
  • Tracked Properties are the properties that are not displayed directly in the actions of Flow but are hidden from the Input/output sections of the Flow and which we can retrieve in a Flow in next actions.

Tracked Properties

Here are the steps to add Tracked Properties in Flow:

Step 1. Click on the Menu icon of the action of Power Automate and select the Settings option:

Tracked Properties in Power Automate

Step 2. In this Settings options, you will be able to see Tracked Properties option at the bottom of all setting options:

Tracked Properties in Power Automate

Step 3. Now, here we can create the properties and store its values. We can also specify dynamic values, which can be values from previous steps of Power Automate.

Tracked Properties in Power Automate

Step 4. You can create multiple properties and click the Done button to save it.

Retrieving Tracked Properties

Here is how you can retrieve tracked properties:

1. You can retrieve the Tracked Properties in any actions of Power Automate. The screenshot below shows that it is retrieving Tracked Properties in a variable. 

  • The syntax to retrieve all Tracked Properties will be as below: 
    action('<action name>')?['TrackedProperties'] 
  • Note: Here <action name> will be the name of the action of which action's Tracked Properties we want to retrieve.
    Tracked Properties in Power Automate

2. If you store it in a String variable, its result will be as below:

Tracked Properties in Power Automate

3. And if you want to retrieve only a specific property, you can mention the property name in the expression as below:

Tracked Properties in Power Automate

4. Its result will be like this:

Tracked Properties in Power Automate

When it is useful

We can use Tracked properties for:

  • Hide things that we don't want to show.
  • Tracking time between two actions – calculating the time difference between approvals.
  • Any property you can normally get the output of, you can track it.
  • It is beneficial since you can access the tracked property anywhere regardless if steps fail or are skipped.
  • You can check the output status code in conjunction with other error checking to notify the admin of flow run failures.

Conclusion

This is how we can use Tracked Properties in Power Automate:

I hope this article will be helpful for you!


Similar Articles