web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Define tracked propert...
Power Automate
Unanswered

Define tracked properties for Power BI dataset refresh

(0) ShareShare
ReportReport
Posted on by 4

Hi everyone, 

 

I want to define Tracked properties for refreshing a Power BI dataset.

 

Unbenannt.PNG

The output structure is as follows if the refresh is successful:

 

 

{

   "statusCode": 200,

   "headers": {

      “Pragma": "no-cache", 

     .... 

  } 

 

I am able to get the status as tracked property by using :

 

"@outputs('Refresh_a_dataset')? ['statusCode']" 

 

 

When an error occurs the outputs are as follows :

 

 

 

{

 

   "statusCode": 400,

 

   "headers": {

 

      “Pragma": "no-cache", 

 

     .... 

 

  }, 

   "body" :{

      "error" : {

         "code": "Invalid Request", 

         "message": "Error message..." 

        } 

     }

 

2021-12-16_08-55-45.jpg

 

 

 

Now if I am trying to get the 'message' or any other content from 'body' the output via Compose: Actions('Refresh_a_dataset').trackedProperties['Error']) or Actions('Refresh_a_dataset')?['Error'] remains empty 

 

What would be the correct way and syntax to get the message as tracked property in this case? Accesing the "statusCode" works:

 

2021-12-16_09-15-17.jpg

 

Thanks for your help! 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Caramba87 ,

     

    Please try this:

    outputs('Refresh_a_dataset')? ['body/error/message']

     

    Best Regards,

    Wearsky

  • Caramba87 Profile Picture
    4 on at

    Hi @v-xiaochen-msft ,

     

    unfortunately also no success with this approach. I´m stll just getting output for the "statusCode".

     

    Edit:

     

    Your solution was correct. I could access the tracked properties via composing Actions('Refresh_a_dataset')?['trackedProperties'] - then I´ve been able to read both properties using the outputs of the compose action: outputs('Compose_properties')?['Error']

     

    Best Regards,

    Caramba87

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard