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 / How to: Run Query agai...
Power Automate
Unanswered

How to: Run Query against a data set -> Populate SharePoint List

(0) ShareShare
ReportReport
Posted on by

Hey there, newbie here~

I'm looking to take a PowerBI dataset and push the data into a SharePoint list on a daily basis. 

image.png

 

After running the query against the dataset, I'm a bit lost...
I was hoping anyone would be able to give me a hand with the steps I'd need to take in populating the SharePoint list below with the Query above..!

Jojojojojo_2-1668053571345.png

Thanks,

Jojojojojojojo

 

 

Categories:
I have the same question (0)
  • Reina_CP Profile Picture
    21 on at

    Hi there! were you able to figure this out? this is actually what I trying to do 😁

  • Verified answer
    Reina_CP Profile Picture
    21 on at

    Its me again! 

     

    I manage to solve it following this video:

    https://www.youtube.com/watch?v=sXdeg_6Lr3o

     

    Basically you create a csv file after you run the query, and then just need to parse it. After that you can add all the items from your table to the share point list

     

    My flow looks like this

    Reina_CP_0-1672169118413.png

     

    I going to be testing this but so far on my manuals runs it is working!

     

  • Jojojojojo Profile Picture
    on at

    Hey thanks for the reply!

    Yeah that looks great! Thanks for the solution, works for me 🙂

    Jojojojojo_0-1673218972946.png

     

  • jdwood44 Profile Picture
    3 on at

    Hi, Jojojojojo. Would you mind sharing screen shots of your Parse JSON above (of course, feel free to redact any sensitive data)?

  • Community Power Platform Member Profile Picture
    on at

    @jdwood44 

    Here's what I ended up using. Note that when I generated this from a sample, it set all fields as required, I had to go back and edit that part since my data contains nulls.

    plaidpenguinhat_0-1683475708350.png

     

     

    {
     "type": "array",
     "items": {
     "type": "object",
     "properties": {
     "RepsAll[LOB]": {
     "type": "string"
     },
     "RepsAll[SEQ]": {
     "type": "string"
     },
     "RepsAll[AgentID]": {
     "type": "integer"
     },
     "RepsAll[Name]": {
     "type": "string"
     },
     "RepsAll[Location]": {
     "type": "string"
     },
     "RepsAll[Coach]": {
     "type": "string"
     },
     "RepsAll[Manager]": {
     "type": "string"
     },
     "RepsAll[NTID]": {
     "type": "string"
     },
     "RepsAll[WPCode]": {
     "type": "string"
     },
     "RepsAll[P#]": {
     "type": "integer"
     },
     "RepsAll[TimeStamp]": {
     "type": "string"
     }
     },
     "required": [
     "RepsAll[Name]",
     "RepsAll[TimeStamp]"
     ]
     }
    }

     

  • Debbie E Profile Picture
    62 on at

    I have used the same process. for some reason the csv ends up with a blank row at the end even though there are no blank rows coming through on the DAX Query so this is making the Parse JSON error.

     

    I wonder if there is a way of getting rid of this empty field in the csv?

  • power_ap Profile Picture
    46 on at

    New to Power Automate, came across this post b/c I was looking to do the same.

     

    My solution is a bit different: basically I used output of PBI query to initialize a variable (which outcome is supposed to be an array), then I parsed JSON (I used PBI query result data and the "Generate from sample" function to create the JSON schema), after which I created SharePoint list. Tested and seemed work fine!

     

    Capture.JPG

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard