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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Power BI Dataflow ...
Power Automate
Unanswered

Get Power BI Dataflow csv from Azure Blob Storage

(0) ShareShare
ReportReport
Posted on by 31
 

 

model.json@snapshot=2021-12-29T13:43:11.8221557Z
model.json@snapshot=2021-12-29T15:42:47.6820754Z
model.json@snapshot=2022-01-02T13:57:44.4572616Z 

 

Then I plan to set that file name to a variable and use as a parameter in a Get Blob Content action. 

 

I should also note that the output from the Lists Blob V2 action is a JSON object, which I then pass to a Create CSV table that generates the lines pasted above.  I need to get the JSON member for the most recent datetime (in red below), so maybe it is not necessary to make the csv first.  How can I extract/query the member with the recent datetime?  Here is the JSON output from the List blobs action:  

[
  {
    "Id""xxxxx==",
    "Name""model.json@snapshot=2021-12-29T13:43:11.8221557Z",
    "DisplayName""model.json@snapshot=2021-12-29T13:43:11.8221557Z",
    "Path""/powerbi/Azure test/Excel Datasource via Gateway/model.json.snapshots/model.json@snapshot=2021-12-29T13:43:11.8221557Z",
    "LastModified""2021-12-29T13:43:11Z",
    "Size"1267,
    "MediaType""application/octet-stream",
    "IsFolder"false,
    "ETag""\"xxxxx\"",
    "FileLocator""xxxxx=="
  },
  {
    "Id""xxxxx==",
    "Name""model.json@snapshot=2021-12-29T15:42:47.6820754Z",
    "DisplayName""model.json@snapshot=2021-12-29T15:42:47.6820754Z",
    "Path""/powerbi/Azure test/Excel Datasource via Gateway/model.json.snapshots/model.json@snapshot=2021-12-29T15:42:47.6820754Z",
    "LastModified""2021-12-29T15:42:47Z",
    "Size"1587,
    "MediaType""application/octet-stream",
    "IsFolder"false,
    "ETag""\"xxxxx\"",
    "FileLocator""xxxxx=="
  },
  {
    "Id""xxxxx==",
    "Name": "model.json@snapshot=2022-01-02T13:57:44.4572616Z",
    "DisplayName""model.json@snapshot=2022-01-02T13:57:44.4572616Z",
    "Path""/powerbi/Azure test/Excel Datasource via Gateway/model.json.snapshots/model.json@snapshot=2022-01-02T13:57:44.4572616Z",
    "LastModified""2022-01-02T13:57:44Z",
    "Size"1587,
    "MediaType""application/octet-stream",
    "IsFolder"false,
    "ETag""\"xxxxx\"",
    "FileLocator""xxxxx=="
  }
]
Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at
    Re: Get Power BI Dataflow csv from Azure Blob Storage

    @JeffN in compose I have added the Json array you gave

    jinivthakkar_0-1641305001018.png

    jinivthakkar_1-1641305039106.png

    Instead of compose just pass the action output you are using in earlier step

     

    outputs('Compose')[2]

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • JeffN Profile Picture
    31 on at
    Re: Get Power BI Dataflow csv from Azure Blob Storage

    That's good , using the [x] record reference.  The problem is that when I refreshed the dataflow again, the set now has four members:  

    model.json@snapshot=2021-12-29T13:43:11.8221557Z
    model.json@snapshot=2021-12-29T15:42:47.6820754Z
    model.json@snapshot=2022-01-02T13:57:44.4572616Z
    model.json@snapshot=2022-01-05T15:46:51.3687507Z

     

    So now I need to refer to [3].

     

    My problem is how can I 'select' the most recent (or last in a sort.asc, first in a sort.desc) item and assign that text (or object) to a variable?  Perhaps there is a function that can count the items and can be used in place of [x]?  Or a way to query/filter the list?

  • v-xiaochen-msft Profile Picture
    on at
    Re: Get Power BI Dataflow csv from Azure Blob Storage

    Hi @JeffN ,

     

    I provided a sample in your another post.

    https://powerusers.microsoft.com/t5/Building-Flows/Get-Power-BI-Dataflow-csv-from-Azure-Blob-Storage/td-p/1402101 

     

    Best Regards,

    Wearsky

  • Verified answer
    jinivthakkar Profile Picture
    4,187 on at
    Re: Get Power BI Dataflow csv from Azure Blob Storage

    @JeffN please see below

    In compose 4, I check the length of compose which has your json array(your results) and I use subtract method to subtract it by 1, which gives me the last index

    and then in compose 2, I pass the value from compose 4 which was obtained after doing subtract operation

    jinivthakkar_0-1641453389864.png

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard