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 / insert row into sql ta...
Power Automate
Unanswered

insert row into sql table from a sharepoint list array

(0) ShareShare
ReportReport
Posted on by 14

Hello

 

I want to insert a row in SQL server table when an item is created on sharepoint.

the problem is that I have two columns which are arrays

I've initialized array variables and append but I cant see those variable available on the insert row step

Any help, please?

 

Jose1965_0-1597908998913.png

Jose1965_1-1597909194076.png

 

Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,625 on at

    Hi @Jose1965 

     

    Just to see if I understand correctly. You have two columns in a SharePoint List that support multiple values and want to insert all of those into a single field in the database correct?

     

    You have two ways to do this. You can do a string(variable), and then you'll get a string like "[1,2,3,4]" or you do a Loop and append to a string variable and not an array variable. Then you can use that in your SQL action.

     

    Can you please check if and let me know if you have any questions?

     

    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

  • Jose1965 Profile Picture
    14 on at

    Hi  Manuel

     

    no, i dont want insert all values from the array into a single column, I just want to insert the current value

  • manuelstgomes Profile Picture
    6,625 on at

    Hi @Jose1965 

     

    Then why are you putting stuff in an array? In the Loop add the insert into database and insert each item directly..

     

    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

  • Jose1965 Profile Picture
    14 on at

    Hi @manuelstgomes 

     

    That was my first approach. it doesnt work

    Jose1965_0-1597915768274.png

     

     

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