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

Excel In the Power Automate Desktop flow Read data with empty or without empty

Hi Everyone,

 

In the Power Automate Desktop flow, after launching Excel, the automation needs to read data from columns A2 to H2. If data is found in these cells, the flow should proceed with the next steps. However, if any blank cells are encountered, the flow should move to the next loop. Could you please assist with this.

 

Best Regards 

Muzamil Ahmed

10 ACCEPTED SOLUTIONS

Accepted Solutions
Agnius
Most Valuable Professional
Most Valuable Professional

Well, once you have read your data from Excel, use a loop to iterate through each cell and check if the value of that cell is empty. If it is, use Next loop to skip the rest of the actions inside the loop.

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

View solution in original post

HI Agnius,

 

Thanks a lot - If you could show a sample with snap how to use the loop iterate through each cell with one example it will very helpful, as i am a very new to all this ,, Appreciate your help 🙂

 

Thanks a million times:)

View solution in original post

Agnius
Most Valuable Professional
Most Valuable Professional

The following steps will do it, but depending on what you want to do with the values, you might want to use a different loop (if you need a loop index to write back to Excel):

Agnius_0-1689998551197.png

Also, this assumes that you are only reading a single row (A2 through H2). That's why it's iterating through a single row, too (using %ExcelData[0]%). If you read more than that, you would need an extra loop and the flow would look like this:

Agnius_1-1689998655836.png

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

View solution in original post

Capture-12345.PNGCapture-123456.PNGOk Sure, I want the open excel file should close if that is empty once it read then go to next loop or else it will be kept open so,, Can you help me how to do that ? 
Have attached snap shot's for your reference.

View solution in original post

Agnius
Most Valuable Professional
Most Valuable Professional

I do not fully understand your use case, but regardless of what you are trying to do, there are at least 2 things wrong with your flow:

  • You use %CurrentItem% in both of your loops. You should change the name of the variable either in the parent loop for files or the nested loop for Excel rows.
  • You have Close Excel in row 6 and 12. The action in row 6 will close the file before it stops using it. You are either missing some actions there, to skip to the next file after closing, or should not have the Close Excel action there.

-------------------------------------------------------------------------

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

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

 

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

View solution in original post

Agnius
Most Valuable Professional
Most Valuable Professional

Okay, that clarifies some things.

 

The problem with your flow was that you were not really going to the next loop in the parent loop when a value was empty in one of those cells. Next loop only works within the scope of the loop that it is in, meaning it was simply skipping to the next cell, but not to the next file. And thus you were also skipping the Close Excel action, too.

 

Here's the approach I would take:

Agnius_0-1692360061498.png

 

What this does is that if it finds an empty value in one of those cells, it exits the nested loop. And then it checks the latest cell value again outside the nested loop. It will still hold the last value at the time when the flow exited the nested loop. So, if it was empty there, it will also be empty after exiting the loop. It will then close Excel and then skip to the next file.

 

Here's a snippet you can copy and paste to PAD:

LOOP FOREACH CurrentItem IN Files
    IF Contains(CurrentItem.NameWithoutExtension, 12345, False) THEN
        NEXT LOOP
    END
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: CurrentItem Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: $'''A''' StartRow: 2 EndColumn: $'''H''' EndRow: 2 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
    LOOP FOREACH CurrentValue IN ExcelData
        IF IsEmpty(CurrentValue) THEN
            EXIT LOOP
        END
    END
    IF IsEmpty(CurrentValue) THEN
        Excel.CloseExcel.Close Instance: ExcelInstance
        NEXT LOOP
    END
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: 11 Column: $'''A''' Row: 2
    Excel.SaveExcel.Save Instance: ExcelInstance
    Excel.CloseExcel.Close Instance: ExcelInstance
END

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

View solution in original post

Hi Agnius,

I tried the above one but its not working - Attached is the videos for your reference thought it will be better.

1.it's not preforming the step number 14 (Close excel & Next Loop) even the excel is empty its switching to Step no 17 and writing which should not do it.

2. it should close the excel and go to next file but its not happening - Please help

 

Please help - enclosed is the video reference for your understanding.
 

View solution in original post

Agnius
Most Valuable Professional
Most Valuable Professional

I assumed that Read from Excel worksheet would result in a data row variable when you read a single row. But it seems like it results in a data table and thus when you loop through it, the %CurrentValue% contains a row with empty values, and thus it is not empty itself.

 

To fix this, an additional nested loop is needed. Your loop should look like this:

Agnius_0-1692790269193.png

 

And here's a snippet for the full flow:

LOOP FOREACH CurrentItem IN Files
    IF Contains(CurrentItem.NameWithoutExtension, 12345, False) THEN
        NEXT LOOP
    END
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: CurrentItem Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: $'''A''' StartRow: 2 EndColumn: $'''H''' EndRow: 2 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
    LOOP FOREACH CurrentRow IN ExcelData
        LOOP FOREACH CurrentValue IN CurrentRow
            IF IsEmpty(CurrentValue) THEN
                EXIT LOOP
            END
        END
        IF IsEmpty(CurrentValue) THEN
            EXIT LOOP
        END
    END
    IF IsEmpty(CurrentValue) THEN
        Excel.CloseExcel.Close Instance: ExcelInstance
        NEXT LOOP
    END
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: 11 Column: $'''A''' Row: 2
    Excel.SaveExcel.Save Instance: ExcelInstance
    Excel.CloseExcel.Close Instance: ExcelInstance
END

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

View solution in original post

Agnius
Most Valuable Professional
Most Valuable Professional

I am not sure I understand your question, but here's what I think should do it.

 

First of all, I've created a list for the values to check for:

Agnius_0-1692955639072.png

 

Then I've added some additional data extraction from Excel to read column C:

Agnius_1-1692955670308.png

 

And then another loop to check if the list we created initially contains each value in column C. If it does, then the loop exists. Then, after the loop, we check if the current item from column C (at the end of the loop) is contained in the list. If it isn't, then we close Excel and move on to the next file. Otherwise, the flow continues to write to Excel.

Agnius_2-1692955756018.png

 

Here's a snippet for the full flow with these actions added:

SET List TO ['D11', 'D08', 'D07', 'ZA1', 'ZB2', 'ZC']
LOOP FOREACH CurrentItem IN Files
    IF Contains(CurrentItem.NameWithoutExtension, 12345, False) THEN
        NEXT LOOP
    END
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: CurrentItem Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: $'''A''' StartRow: 2 EndColumn: $'''H''' EndRow: 2 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
    Excel.GetFirstFreeRowOnColumn Instance: ExcelInstance Column: $'''C''' FirstFreeRowOnColumn=> FirstFreeRowOnColumn
    Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: $'''C''' StartRow: 1 EndColumn: $'''C''' EndRow: FirstFreeRowOnColumn - 1 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelDataColumnC
    LOOP FOREACH CurrentRow IN ExcelData
        LOOP FOREACH CurrentValue IN CurrentRow
            IF IsEmpty(CurrentValue) THEN
                EXIT LOOP
            END
        END
        IF IsEmpty(CurrentValue) THEN
            EXIT LOOP
        END
    END
    IF IsEmpty(CurrentValue) THEN
        Excel.CloseExcel.Close Instance: ExcelInstance
        NEXT LOOP
    END
    LOOP FOREACH CurrentRow IN ExcelDataColumnC
        IF Contains(List, CurrentRow[0], False) THEN
            EXIT LOOP
        END
    END
    IF NotContains(List, CurrentRow[0], False) THEN
        Excel.CloseExcel.Close Instance: ExcelInstance
        NEXT LOOP
    END
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: 11 Column: $'''A''' Row: 2
    Excel.SaveExcel.Save Instance: ExcelInstance
    Excel.CloseExcel.Close Instance: ExcelInstance
END

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

View solution in original post

Agnius
Most Valuable Professional
Most Valuable Professional

The second loop will iterate through the values in column C - the values extracted by the second Read from Excel worksheet action. While it is still only one column, PAD will by default return a data table with one column. This is why a %CurrentItem% in this loop will actually be a data row with a single column. And thus using %CurrentItem[0]% indicates that we are getting the actual value from the first column, instead of the entire row.

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

View solution in original post

18 REPLIES 18
Agnius
Most Valuable Professional
Most Valuable Professional

Well, once you have read your data from Excel, use a loop to iterate through each cell and check if the value of that cell is empty. If it is, use Next loop to skip the rest of the actions inside the loop.

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

HI Agnius,

 

Thanks a lot - If you could show a sample with snap how to use the loop iterate through each cell with one example it will very helpful, as i am a very new to all this ,, Appreciate your help 🙂

 

Thanks a million times:)

Agnius
Most Valuable Professional
Most Valuable Professional

The following steps will do it, but depending on what you want to do with the values, you might want to use a different loop (if you need a loop index to write back to Excel):

Agnius_0-1689998551197.png

Also, this assumes that you are only reading a single row (A2 through H2). That's why it's iterating through a single row, too (using %ExcelData[0]%). If you read more than that, you would need an extra loop and the flow would look like this:

Agnius_1-1689998655836.png

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

Hi Agnius,

Thanks for the above snap shots, I tried but its not working the the close excel & its not going to next loop can you please check once and help where im doing error - attached is the snap shot for you,,

Agnius
Most Valuable Professional
Most Valuable Professional

Why are you closing Excel in the loop? You should only close it after you're completely done with what you want to do. And you only need to close it once - not within the loop.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

Capture-12345.PNGCapture-123456.PNGOk Sure, I want the open excel file should close if that is empty once it read then go to next loop or else it will be kept open so,, Can you help me how to do that ? 
Have attached snap shot's for your reference.

Agnius
Most Valuable Professional
Most Valuable Professional

I do not fully understand your use case, but regardless of what you are trying to do, there are at least 2 things wrong with your flow:

  • You use %CurrentItem% in both of your loops. You should change the name of the variable either in the parent loop for files or the nested loop for Excel rows.
  • You have Close Excel in row 6 and 12. The action in row 6 will close the file before it stops using it. You are either missing some actions there, to skip to the next file after closing, or should not have the Close Excel action there.

-------------------------------------------------------------------------

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

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

 

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

If you don't mind can you give a proper step snap shots as new it will help a lot for me please...?

Agnius
Most Valuable Professional
Most Valuable Professional

No, I cannot, because I don't understand what you are trying to do. Please provide a clear step-by-step instruction of what you want to achieve and then maybe I can come up with a suggestion for the flow.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

1.Opening the excel Files one by one using the for each loop after Get files in folders step.
2.If the file name contains 12345 it should not open the file and go to next Loop.
3.Other than 12345 file name contains it should open - which is No 6 Launch Excel.
4.No 7th Step is reading the excel file from A2 to H2 row.

5.Created one more For each loop steps 8 within in For each loop  - to perform- If the current excel file cells from A2 to H2 is empty then current excel file should close and go to next loop - to open next excel file.

 

Hope it helps you..

Agnius
Most Valuable Professional
Most Valuable Professional

Okay, that clarifies some things.

 

The problem with your flow was that you were not really going to the next loop in the parent loop when a value was empty in one of those cells. Next loop only works within the scope of the loop that it is in, meaning it was simply skipping to the next cell, but not to the next file. And thus you were also skipping the Close Excel action, too.

 

Here's the approach I would take:

Agnius_0-1692360061498.png

 

What this does is that if it finds an empty value in one of those cells, it exits the nested loop. And then it checks the latest cell value again outside the nested loop. It will still hold the last value at the time when the flow exited the nested loop. So, if it was empty there, it will also be empty after exiting the loop. It will then close Excel and then skip to the next file.

 

Here's a snippet you can copy and paste to PAD:

LOOP FOREACH CurrentItem IN Files
    IF Contains(CurrentItem.NameWithoutExtension, 12345, False) THEN
        NEXT LOOP
    END
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: CurrentItem Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: $'''A''' StartRow: 2 EndColumn: $'''H''' EndRow: 2 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
    LOOP FOREACH CurrentValue IN ExcelData
        IF IsEmpty(CurrentValue) THEN
            EXIT LOOP
        END
    END
    IF IsEmpty(CurrentValue) THEN
        Excel.CloseExcel.Close Instance: ExcelInstance
        NEXT LOOP
    END
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: 11 Column: $'''A''' Row: 2
    Excel.SaveExcel.Save Instance: ExcelInstance
    Excel.CloseExcel.Close Instance: ExcelInstance
END

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

Hi Agnius,

I tried the above one but its not working - Attached is the videos for your reference thought it will be better.

1.it's not preforming the step number 14 (Close excel & Next Loop) even the excel is empty its switching to Step no 17 and writing which should not do it.

2. it should close the excel and go to next file but its not happening - Please help

 

Please help - enclosed is the video reference for your understanding.
 

Agnius
Most Valuable Professional
Most Valuable Professional

I assumed that Read from Excel worksheet would result in a data row variable when you read a single row. But it seems like it results in a data table and thus when you loop through it, the %CurrentValue% contains a row with empty values, and thus it is not empty itself.

 

To fix this, an additional nested loop is needed. Your loop should look like this:

Agnius_0-1692790269193.png

 

And here's a snippet for the full flow:

LOOP FOREACH CurrentItem IN Files
    IF Contains(CurrentItem.NameWithoutExtension, 12345, False) THEN
        NEXT LOOP
    END
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: CurrentItem Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: $'''A''' StartRow: 2 EndColumn: $'''H''' EndRow: 2 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
    LOOP FOREACH CurrentRow IN ExcelData
        LOOP FOREACH CurrentValue IN CurrentRow
            IF IsEmpty(CurrentValue) THEN
                EXIT LOOP
            END
        END
        IF IsEmpty(CurrentValue) THEN
            EXIT LOOP
        END
    END
    IF IsEmpty(CurrentValue) THEN
        Excel.CloseExcel.Close Instance: ExcelInstance
        NEXT LOOP
    END
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: 11 Column: $'''A''' Row: 2
    Excel.SaveExcel.Save Instance: ExcelInstance
    Excel.CloseExcel.Close Instance: ExcelInstance
END

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

Hi Agnius, Thanks, its working, forget to ask on more thing & need help to add in this only .. 1.It have to read full for Ex- C column in excel file if the text contains any of these text (D11,D08,D07,ZA1,ZB2,ZC) then only it should go to "Write to excel sheet one Step or else it should close the excel then go to next one ? Please help to add this condition or step with the above one.
Agnius
Most Valuable Professional
Most Valuable Professional

I am not sure I understand your question, but here's what I think should do it.

 

First of all, I've created a list for the values to check for:

Agnius_0-1692955639072.png

 

Then I've added some additional data extraction from Excel to read column C:

Agnius_1-1692955670308.png

 

And then another loop to check if the list we created initially contains each value in column C. If it does, then the loop exists. Then, after the loop, we check if the current item from column C (at the end of the loop) is contained in the list. If it isn't, then we close Excel and move on to the next file. Otherwise, the flow continues to write to Excel.

Agnius_2-1692955756018.png

 

Here's a snippet for the full flow with these actions added:

SET List TO ['D11', 'D08', 'D07', 'ZA1', 'ZB2', 'ZC']
LOOP FOREACH CurrentItem IN Files
    IF Contains(CurrentItem.NameWithoutExtension, 12345, False) THEN
        NEXT LOOP
    END
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: CurrentItem Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: $'''A''' StartRow: 2 EndColumn: $'''H''' EndRow: 2 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
    Excel.GetFirstFreeRowOnColumn Instance: ExcelInstance Column: $'''C''' FirstFreeRowOnColumn=> FirstFreeRowOnColumn
    Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: $'''C''' StartRow: 1 EndColumn: $'''C''' EndRow: FirstFreeRowOnColumn - 1 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelDataColumnC
    LOOP FOREACH CurrentRow IN ExcelData
        LOOP FOREACH CurrentValue IN CurrentRow
            IF IsEmpty(CurrentValue) THEN
                EXIT LOOP
            END
        END
        IF IsEmpty(CurrentValue) THEN
            EXIT LOOP
        END
    END
    IF IsEmpty(CurrentValue) THEN
        Excel.CloseExcel.Close Instance: ExcelInstance
        NEXT LOOP
    END
    LOOP FOREACH CurrentRow IN ExcelDataColumnC
        IF Contains(List, CurrentRow[0], False) THEN
            EXIT LOOP
        END
    END
    IF NotContains(List, CurrentRow[0], False) THEN
        Excel.CloseExcel.Close Instance: ExcelInstance
        NEXT LOOP
    END
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: 11 Column: $'''A''' Row: 2
    Excel.SaveExcel.Save Instance: ExcelInstance
    Excel.CloseExcel.Close Instance: ExcelInstance
END

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

Hi Agnius,

Thank you so much for the help its working now,, One more last help If you could help me with above code explanation especially on loop how its working n what its do's and what is zero in this does %CurrentRow[0]% ? 

 

It will help me to apply for other logic as well - A humble request thanks a lot 🙂

Agnius
Most Valuable Professional
Most Valuable Professional

The second loop will iterate through the values in column C - the values extracted by the second Read from Excel worksheet action. While it is still only one column, PAD will by default return a data table with one column. This is why a %CurrentItem% in this loop will actually be a data row with a single column. And thus using %CurrentItem[0]% indicates that we are getting the actual value from the first column, instead of the entire row.

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

Thank you so much for help 🙂

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 (1,837)