cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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

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

2 ACCEPTED SOLUTIONS

Accepted Solutions

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.

View solution in original post

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.

View solution in original post

22 REPLIES 22

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

----
If my post has answered your question, please thumbs up and mark this post as a solution.

I also offer paid consulting services at www.peakdigitran.com/appointments and you can find me on LinkedIn at https://www.linkedin.com/in/michael-annis-80903/,
Anonymous
Not applicable

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.

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.

@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. 

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.

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.

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, 

 

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.

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.

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.

Hi @Anonymous ,

 

Yeah, Thanks for your response again. this is the problem. I rectified it. 

 

The error I am facing after resolving the syntax error : I think some thing related to access DB and share point list sync. any clue ? 

 

vamsi_varanasi_0-1632834705748.png

 

Thanks,

 

Hello @vamsi_varanasi 

 

It looks like column name reference issue.

What is the exact column name of your SharePoint list?

Also could you show us the SQL query you want to run?

 

Thank you.

@Anonymous , These are the below list and the columns 

 

vamsi_varanasi_0-1632836434060.png

 

This is the SQL query from PAD - 

vamsi_varanasi_1-1632836518416.png

 

vamsi_varanasi_2-1632836542505.png

in both SQL query cases, I faced the same issue. 

 

vamsi_varanasi_3-1632836587853.png

 

Thanks 

 

Hello @vamsi_varanasi 

 

So, [Fun_Non-Fun_Status] is a list name, right?

Are you sure the list ID specified in the connection string is matching the list name specified in the INSERT statement of SQL?

 

Per my experiment, following SQL query was worked just fine for me:

 

INSERT INTO [Fun_Non-Fun_Status] (Title, TestCaseName, Source, Expected, Actual_UTC, Status) VALUES ('Item01', 'TEST123', 'TEST456', 'TEST123', 'TEST343', 'TEST223')

 

Thank you.

Hi @Anonymous ,

 

yes, this is list name. I given the list id in the connection string as below

 

I removed the %7B in front of ID and %7D rear of the ID and given the rest of the ID 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};

 

I given { LIST ID GUID} to the list id , is this correct ? 

 

Thanks

 

Hello @vamsi_varanasi 

 

Your connection string seems looks fine.

It should work with or without curly braces.

 

Try to use different SharePoint list, if you did not try yet?

 

If you're still having trouble with SQL or SharePoint lists, since this community is for PAD, it's a good idea to find other places to ask your question to experts in that area. 🙂

 

Thanks

Hi @vamsi_varanasi @Anonymous 

I was trying to connect SharePoint List of another tenant. But I am getting the same error as Vamsi getting i.e. List object not found.

 

@vamsi_varanasi  Have you solved the issue. Could anyone help me to solve this.

@Anonymous All things are working well in one tenant but not working for list in Another SharePoint tenant.

@Harpreet_Tohra - No, not resolved yet. but what I have observed , it is completely dependent on Share point version, driver in PAD.

 

I am able to solve in one system and unable to access in other system. 

Hi @Anonymous I was trying to get attachments from SharePoint list Using Open SQL connection But As we know it retrieves data in the from of Datatable. So it is showing true instead of attachment. Is there any way to retrieve attachment file from SharePoint using open SQL connection  action in Power Automate Desktop.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (713)