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 / Sending Varibale value...
Power Automate
Answered

Sending Varibale value from Power Automate Desktop Loop to Power Automate Cloud

(0) ShareShare
ReportReport
Posted on by 71

Hi 

I am new to Power Automate Desktop and Power Automate. Could anyone help me to solve the issues.

I am extracting a data table from website using Power Automate Desktop. Table has rows and columns properly. 

The extracted data is being stored in DataTable variable in the form of Data Table.

Now the thing is, I want to send this DataTable to Power Automate Cloud and use the values by particular row and column and fill that data into a SharePoint List.

 

I am able to extract data but I am not able to send it as a data table to cloud flow. I guess it sends the data in array or string form and I am not sure about that.

If I am using loop to send the data to cloud it is passing only last value from loop.

Harpreet_Tohra_0-1632314103419.png

As you can see in the above SS loop is running but it is sending the NetRate, Unit_Type and Date at the end the loop to cloud flow, But I want it should send the variable values after each iteration to Cloud flow , then go to the next iteration.

 

OR If I could fill SharePoint directly from Automate Desktop that could also be beneficial

Could anyone help me over this.

Thanks in advance

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    In PAD, we are able to create environmental variables use "Set Environment variable", but I don't know if this translates to cloud; seems like it should.

     

    I don't deal with cloud, so I am sure there is a better solution, but if environment variables don't work, this might be a workaround:

    Write your data table to Excel (to SharePointe, if you wish)

    Have Power Automate Cloud pick up the data table from Excel

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Harpreet_Tohra 

    You can connect to your SharePoint List and run SQL query from PAD to INSERT your data directly into SharePoint List.

     

    [Connection String]
    Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes; DATABASE=https://TENANT_NAME.sharepoint.com/sites/SITE_NAME/;LIST=LIST_ID_GUID;

     

    [SQL Statement]

    INSERT INTO list (Title, FirstName, LastName, PhoneNumber) VALUES ('Item01', 'Alice', 'White', '0123')

     

    shindomo_1-1632322187757.png

     

    shindomo_0-1632321891761.png

     

    As a result, you see those new items are added to your SharePoint List.

     

    shindomo_2-1632322270111.png

     

    Thank you.

  • Harpreet_Tohra Profile Picture
    71 on at

    Hi @Anonymous I want to try this. Could you please tell me more about this. I searched on Google and article I found is asking to download some ODBC and i guess that is paid. could you please help me over this. To connect Power Automate Desktop with SharePoint using this ODBC, If it is free to use.

    I shall be thankful to you.

  • vamsi_varanasi Profile Picture
    152 on at

    @Harpreet_Tohra and @Anonymous  -

     

    Which Driver do we need to select in order to connect cloud share point list from PAD? 

     

    vamsi_varanasi_0-1632690697205.png

     

    I am trying to create the connection string here to connect sharepoint. 

     

    please advise. 

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Harpreet_Tohra and @vamsi_varanasi 

     

    I have read below article by @MiyakeMito posted in Qiita.com.

    It is written in Japanese, however, contains very useful information regarding this scenario.

    Power Automate Desktop で SharePoint Onlineリストのデータをダイレクトに取得や操作する方法 - Qiita

     

    All you need is "Microsoft Access Database Engine 2010 Redistributable" which you can download from here:

    Download Microsoft Access Database Engine 2010 Redistributable

     

    I suppose I am using "Microsoft Office 12.0 Access Database Engine OLE DB Provider" as provider, but I don't know how to configure the connection further in this UI panel...

    shindomo_0-1632692934753.png

     

    So, I enter the connection string directly to the PAD action "Open SQL connection" as below:

     

    [Connection String]
    Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes; DATABASE=https://TENANT_NAME.sharepoint.com/sites/SITE_NAME/;LIST=LIST_ID_GUID;

     

    Thank you.

  • Harpreet_Tohra Profile Picture
    71 on at

    Hi @Anonymous Thanks for the solution. It worked for me. Could you please tell me about connecting a created View for SharePoint List. I was trying to connect but it is unable to connect.

    I am using this.

    Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes; DATABASE=https://Tenat_Name.sharepoint.com/sites/Site_Name/Lists/List_Name/;VIEW=GUID;

    Could you help me over this.

  • vamsi_varanasi Profile Picture
    152 on at

    Hi @Anonymous @Harpreet_Tohra ,

     

    Thanks for your response. 

     

    We have installed Microsoft Access Database Engine 2016 Redistributable  as 2010 support has been discontinued. 

     

    I am getting the below error from SQL query execution , do you think is any configuration change required ?

     

    vamsi_varanasi_1-1632830423236.png

     

     

    Thanks, 

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @Harpreet_Tohra 

     

    Per my experiment, following connection string worked for me:

     

    [Connection String]

    Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes;DATABASE=https://TENANT_NAME.sharepoint.com/sites/SITE_NAME/;LIST=LIST_ID_GUID;VIEW=VIEW_ID_GUID;

     

    [SQL Query]

    SELECT * FROM [VIEW_NAME]

     

    Please try it.

    Thank you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @vamsi_varanasi 

     

    I suppose your problem is "Parentheses" used in the column name "Actual(UTC)" in your example.

     

    I am able to insert a new item to SharePoint List using following SQL statement:


    INSERT INTO list (Title, FirstName, LastName, PhoneNumber, [DateTime (UTC)]) VALUES ('Item04', 'Daniel', 'Orange', '4567', '2021-10-02 16:16')

     

    shindomo_0-1632832506397.png

     

    The point is to enclose the column name with a bracket symbol "[" and "]".

     

    Thank you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @vamsi_varanasi 

     

    Please change the provider name as below:

     

    Provider=Microsoft.ACE.OLEDB.16.0;WSS;IMEX=0;RetrieveIds=Yes;DATABASE=https://TENANT_NAME.sharepoint.com/sites/SITE_NAME/;LIST=LIST_ID_GUID;

     

    Thank you.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard