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 Apps / export data from share...
Power Apps
Answered

export data from sharepoint to sql server in powerapps

(0) ShareShare
ReportReport
Posted on by

Is it possible:

to

export data from sharepoint to sql server in PowerApps.

Without using Flow/Automate ?

Just guessing:

SharePoint to a Collection to sql server   ?

 

Thanks

David

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Yes, you would use Collect() to pull data from SharePoint, then Collect() again to post it to SQL.

    ---
    If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

  • Community Power Platform Member Profile Picture
    on at

    example links maybe please ?

     

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Here is some sample code that loops through a SharePoint list and inserts into a SQL table:

    ForAll(MySharePointList,Collect('[dbo].[MySqlTable]',{SqlColumn1:SharePointColumn1,SqlColumn2:SharePointColumn2,SqlColumn3:SharePointColumn3}))

    Here is the documentation on the Collect function

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-clear-collect-clearcollect

    If you only want to insert select SharePoint list values, you can use the Filter() function. Here is the docs for that

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

    That code would look like this

    ForAll(Filter(MySharePointList,MyFilteredColumn=MyFilterCondition),Collect('[dbo].[MySqlTable]',{SqlColumn1:SharePointColumn1,SqlColumn2:SharePointColumn2,SqlColumn3:SharePointColumn3}))

    ---
    If this answered your question, please click "Accept Solution". If this helped, please 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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard