cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
George1234a
Regular Visitor

Problems with rows updating

Good afternoon!

 

I have an excel file with daily support incidents, which I receive everyday by my colleague in Outlook, after that I save it in SharePoint and update main excel file with support incidents registry. I want to automate these processes:

 

1. Saving excel file from Outlook to SharePoint - Done it already;

2. Creating a table in saved file - Done it already;

3. Updating rows in main excel file - Can't do it!

 

When I try to add this flow, it doesn't show me "future" columns, because file isn't created yet. Tell me, anyone, please, how to that flow? Or maybe you have another way to do it?

 

Thank you!

18 REPLIES 18
ScottShearer
Most Valuable Professional
Most Valuable Professional

@George1234a 

While I don't totally understand the workflow you have described, it appears as though you can simply save what doesn't yet exist and retrieve the rows again that you want to use.

 

 

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

Scott

Yes, but I want to automate these processes, my colleague send me an excel file, it saves automatically on SharePoint folder, after that it creates a table into that saved excel file (because into that file are only columns, but they aren't as a table column), finally that file needs to add new rows in my incidents registery. Is there any other way to automate these processes behind I wrote above?

@George1234a 

Data in Excel must be in a table for Power Automate to retrieve the data - no work arounds.  If I understand you correctly, the issue is that the data is in the Excel file is not in a table.  There is an Excel for Business Create Table action.

The issue with the action is that you must know the cell range in order to create the table.  Do you know the cell range?

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

Scott

No, there is a data in the table, I know cell range in the file, but in the action "Update a row" it doesn't show me columns name, because the file isn't created in the SharePoint yet (because I don't receive it yet), after I receive it saves in SharePoint->Creating a table in saved file->Updating rows in main excel file (registery)

13.PNG

My flow looks like this:

screen 1.PNG

2. Action "Update a Row" looks like this, but there is no column in the left, because file doesn't exist now (not created in SharePoint):

screen 2.PNG

3. But If I write not a dynamic file (I created for example), it shows me columns in the left:screen 3.PNG

So where can I take column names if the file isn't created but I know what name they will have?

Hmm, not sure I am understanding correctly.
Wouldn't the rows you want to update be in the main excel file (and wouldn't this file already exist and is not created by your flow)?
Or is your flow creating the main excel file?

Main file is already exists and placed in common folder with the file I receive everyday, everything I want - rows in the main file must be updated by received (everyday) file, they have same columns

@George1234a : The problem is not because your file isn't created. Its because, you are giving id of the file created in previous steps. This is a generated value, not a static value. Flow has no clue what the File id value can be, because it can be anything and it will only know when the flow runs. So it cannot retrieve the Table headers from the excel sheet.

 

Now this does not mean you cannot update the row. You still can.

 

  1. Click "Show advanced options"
  2. Notice the field "Provide the item properties"
  3. Add the following values in there {"ColumnHeader1" : "Value1", "ColumnHeader2" : "Value2", "ColumnHeader3", "Value3".......}
  4. Since I don't know Cyrillic I just used ColumnHeader1 2 3 etc, but I hope you get the idea.

 

Hope that helped.

So for your update a row step you should select the file in the common folder, instead of using the Id from the create file step (this would update rows on the new file, not the main file). However, if I'm misunderstanding and you need to update rows on the created file then @neerajsu's solution should do the trick.

Hi @neerajsu . I'm trying your solution for a similar issue.

 

I've got to very similar flows for two sharepoint list. For one flow I can see the "Provide the item properties" field and it works fine, but for the other It shows only "body" ando not "item properties", and I can't set it right

 

I don't know why in this "update a row" action I get a different option than for the other flow, any ideas?

 

Captura de pantalla 2021-08-05 153147.png

 

I've tried the same approach in "Body" but I've got an invalid template error Unable to process template language expressions in action

 

Thanks!

Hi Silivia,

It looks like you are using a dynamic file for the file ID.

I would try selecting a file with the table you want to update. This should allow the columns to show and you can enter the update information. After you have done this change the file back to your dynamic ID, enter your custom table value, and test.

Hi @majorfriend 

 

The table I want to update is created within the flow (I have an excel template that I populate with some sharepoint item fields after an approval is done; then I copy this file to a folder also created within the flow and I change it's name. So I know in the flow the name of the new file, the folder, the table name and the key but the file isn't really created yet). I need to update these some rows in the new file created because we have several items and sometimes it mixes values because some approbals are done at the same time (and delays are not solving the issue either).

 

I've tried your approach, with the existent file and then changing it to the dynamic id, but as soon as I changed it the table value is changed and i get the body field againt (and the same error):

 

Captura de pantalla 2021-08-05 165310.png

 

I have another very similar flow and when I use the action get rows with a dynamic ID I have the "provide the item properties" field:

Captura de pantalla 2021-08-05 170707.png

 

But I don't know why in this flow it shows "body" instead of "provide the item properties":

SILVIAT_0-1628176123726.png

 

Thanks!!

If you leave the File field with the dynamic content, but erase the GUID found in the Table field and enter your table name as a custom value then test your flow again do you still get an error?

Hi,

 

Yes, if I change it back It says the table doesn't exists:

"body": {
        "status"404,
        "message""No table was found with the name 'Expediente'.\r\nclientRequestId: 5b8d0c04-e0c5-43fb-a320-4746bf6da588\r\nserviceRequestId: a76138db-5125-4cf9-82b4-2ad3d31bf85b",
        "error": {
            "message""No table was found with the name 'Expediente'."
        },
        "source""excelonline-we.azconn-we.p.azurewebsites.net"
    }

 

Hi @majorfriend 

 

I've found a work around for this. Afer updating the rows I wanted to convert the file to pdf, and I've found that the only way to do that is in onedrive, not sharepoint.

So since I was copying already my file to onedrive, I've tried to update the rows in onedrive, not in sharepoint, and that works!!

This is the flow, in case it helps anyone:

Captura de pantalla 2021-08-06 162139.png

 

Then I copy the pdf back to sharepoint, because is the final file I really need to send by email.

Hello @Neerajuris 

 

I am also facing the same issue & stumbled upon your post. I tried to query the table by dynamically but failed to load the column names. As you suggested do it by defining using Json in item properties. but it still not loading.

Please help if anyone known this issue

akshaymane_71
Frequent Visitor

Hi @SILVIA-T  ,

I followed your tread & just want to ask how do you get table name ? is it custom value or automatically read from excel/ file 

please reply it would be helpful.

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 (559)