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 / Copying the data from ...
Power Automate
Unanswered

Copying the data from excel to sql server using actions in power automate desktop

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello ,

 

I have a cloud flow creating the excel files in one drive, whenever a  mail is triggered with only excel attachments. So as using (list rows present in table) action , able to get the excel fields in dynamic content.

 

So from here , using power automate desktop flow , to copy the excel content into SQL server (MSSQL) . Made use of input variables to get the excel value from dynamic content in cloud flow. And using (open SQL , execute SQL actions) in power automate desktop. So struck in giving query in 'execute SQL' , kindly help with same of giving the required query (insert into) using variables created or suggest any process here to enter the data from excel to SQL (using desktop flow).

 

Also after data entry in SQL SERVER, there are few conditions to be applied to that data & based on the result , need to generate new different excel files for different results this process also using desktop flow. Kindly guide the process here.

 

It would be great, if I get any syntax/example for connection string using 'SQL SERVER AUTHENTICATION', not the 'windows authentication' ,to create a connection in (open SQL) action. Kindly look into these, expecting early response. 

 

Thanks in advance.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello Awaiting for the response , even the brief explanation of it works . Kindly look into this

  • yoko2020 Profile Picture
    495 on at

    @Anonymous 

     

    Here is sample connection string for sql server.

     

    Provider=SQLOLEDB.1;Persist Security Info=True;User ID=%sqlservertrackerusername%;Password=%sqlservertrackerpassword%;Initial Catalog=%sqlServerTrackerDatabaseName%;Data Source=%sqlservertrackeraddress%;
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you @yoko2020 , for help providing the connection string. Also will you be able to help with the process  i mentioned on power automate desktop please? The second part of it as i mentioned above

     

    Also after data entry in SQL SERVER, there are few conditions to be applied to that data & based on the result , need to generate new different excel files for different results this process also using desktop flow. Kindly guide the process here.

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 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard