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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Inserting new created ...
Power Automate
Unanswered

Inserting new created sharepoint list items into an Azure DB

(0) ShareShare
ReportReport
Posted on by 1,151

HI All

I have a scenario which my organisation wants to send Powerapp data to Sharepoint and SQL DB.

They want to keep the features of using Sharepoint list such as Person/Group lookup etc but once the data has been submitted i need to copy the same information into a table on the SQL DB

 

I am fine when it comes to using sharepoit lists but SQL DB is new to me.

 

I have researched but can't find mush in the way of this functionality.

 

Any help would be great

Thanks Gary

Categories:
  • gazzo1967 Profile Picture
    1,151 on at

    is really as simple as 

    When item created Insert row?

  • manuelstgomes Profile Picture
    6,643 on at

    Hi @gazzo1967 

     

    We need to set expectations first.

     

    SharePoint Lists have some concepts that can be translated to database concepts. For example, some items in a list can be easily created into a table (string, numbers, etc.). Lookups can be translated roughly to relationships between tables, so if you want a "People Lookup," you need to create a reference to a table "People." 

     

    Does this make sense? 

     

    So to get data into an Azure SQL Database can be quite simple or pain in the behind depending on how well your SharePoint list are translatable to SQL.

     

    Can you provide a sample of the SharePoint list so that I can help you further?

     

    If you can't try the following:

    1. Create a stored procedure that inserts data into the table(s) that you want to save the data.
    2. Create a simple flow that calls that stored procedure once an item is created (you can use the modified to update the results)

     

    small-Screenshot 2019-09-17 at 15.09.43.png

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers
    Manuel

     

  • gazzo1967 Profile Picture
    1,151 on at

    @manuelstgomes 

    I assume that the people/group takes its information from the sharepoint user list?

    i also have fields that populate via choice fields and one lookup

    I kind of understand that i have to have a primary and a foriegn key to create the relationship.

    This is not going to simple is it lol?

     

    Gary

  • gazzo1967 Profile Picture
    1,151 on at

    @manuelstgomes 

    i know this would be a really 'hack' way to do it but would it not work by exporting to excel then sending to SQL?

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @gazzo1967 ,

     

    Perhaps you can consider only recording key information in SQL DB.

    For example, the Person field stored in the SharePoint list, you can consider inserting the Person email only in the SQL DB, because this is the unique info, but the most critical information, you can use it to do a lot of subsequent operations.

     

    Best Regards,

  • manuelstgomes Profile Picture
    6,643 on at

    @Gaz_E sure if you prefer that could work. I don't recommend it because there's an extra step without any additional gain. Try moving it directly to the database. The flow is quite simple; you'd get a much more clean flow. My recommendation:

    1. Make a list of the SharePoint's fields and types.

    2. Check if you can make them all into strings, numbers, and dates.

    3. If you can, dump everything as-is into the database in one fast and quick step :).

     

    If you have to add more stuff to SharePoint, then it's just a question of adding that field to the database and map it in the flow. Simple and clean.. 

     

    @v-bacao-msft has a point. Store only information that you need. You can fetch for the rest of the information later if you need it. 

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard