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 / From Datasverse to Azu...
Power Automate
Unanswered

From Datasverse to Azure Blob and everything in between

(0) ShareShare
ReportReport
Posted on by 831 Moderator

I have a table in the Dataverse created and updated by a PowerApp. Here is what I am trying to do.

 

  1. When a row is added, deleted or modified I want to trigger the flow
  2. I don't need all of the columns, so I need to pick which ones I want.
  3. Change the column names.
  4. Write the output to a CSV file.
  5. Store the CSV file in Azure Blob (or possibly Azure File Storage)

It all sounds easy in my head but I get muddled with all of the options.

Categories:
I have the same question (0)
  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    Hello @futr_vision

     

    Please show us what you already got and where you currently stuck.

  • futr_vision Profile Picture
    831 Moderator on at

    I've added and deleted a number of actions but this us where I am at.

    futr_vision_0-1699141169744.png

     

  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    Why do you need “Create Worksheet“? I thought you wanted to create a csv. There is a “data operations” action to “create a csv”. As far as I remember you can change the name and the number of columns with this action as well. You also can use the “Select” action to do that.

     

    After that you save it to your blob storage using the output of create csv.

  • futr_vision Profile Picture
    831 Moderator on at

    I guess I don't have to. I had tried the Create CSV Table since that was the only one I could find but that prompted me with entering something in the "From" field. I tried some of the columns that were presented to me but the process ultimately failed. 

    The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@{triggerOutputs()?............ is of type 'String'. The result must be a valid array.

  • futr_vision Profile Picture
    831 Moderator on at

    Actuallly, I do remember why I was creating a worksheet. I've been waiting for our team to provision me space on Azure Blob. I figured if I output to a worksheet I could at least see if it works. Maybe there is a better way. Probably just save to Sharepoint or something.

  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    The csv action needs an array. You already have an array (value of list rows). This is what you need to use. Just give it a try. And of course you can save it to SharePoint as well to test it. Content is the output of the csv action.

  • futr_vision Profile Picture
    831 Moderator on at

    This seems to work but when I look at the output looks like 

     

     

    {
     "body": 
     A bunch of data
    }

     

     

    Is that correct? Will that actual output look different in a CSV file opened in Excel?

     

  • futr_vision Profile Picture
    831 Moderator on at

    Should have just tested. It works. Now, where in this flow do I pick the columns I want and where do I change the name of one of the columns?

  • futr_vision Profile Picture
    831 Moderator on at

    I think I have figured it out. Now. My next struggle is that this can only run once. The next time it runs it fails at the create file action since the file already exists.

     

    futr_vision_0-1699292721725.png

     

  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    You can also change the values during create csv the same way you do with the select action.

     

    For “File already exist” you have to think about what you want to happen. You could create the file with a timestamp or you replace the file or give it a new name. Depending on what you decide, your flow needs to be changed a little.

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard