Skip to main content

Notifications

Community site session details

Community site session details

Session Id : pGJ6CoqDIxmFEfm+O8+YdR
Power Automate - Building Flows
Answered

Getting Values from Excel Get a row Action

Like (0) ShareShare
ReportReport
Posted on 21 Feb 2020 10:20:49 by

Hi all, 

 

I have a Flow that is supposed to basically take the data from an excel file and push it into a SharePoint list. 

When a new excel file is added to a folder in SharePoint, the data is supposed to be updated in a SharePoint list, based on the field "Mission"

flow_21_02.png

Formula in the Key Value field is: 

body('List_rows_present_in_a_table')?['Mission']
This is all working fine, but then when I want to use a "Get items" action with oData query like:
Mission eq 'body('List_rows_present_in_a_table')?['Mission']' 
then it shows up blank. 
And then I tried immediately after the "Get a row" action above to just drop the exact same formula in an "append to string variable" and same deal. 
In the excel action it seems to run properly, getting the value (for e.g. 'Haiti') but in any other action it comes up blank.
Ideas?
  • Verified answer
    Community Power Platform Member Profile Picture
    on 09 Aug 2021 at 11:39:42
    Re: Getting Values from Excel Get a row Action

    One key piece of information I did not think to include here was the fact that my "Mission" column in SharePoint is a managed metadata column. Apparently Odata queries do not support these types of columns. So I would have had to use an http request or something instead. 

    Sorry for not including this! Didn't realise it would be important. 

  • SergioDL99 Profile Picture
    2 on 26 Jul 2021 at 02:03:05
    Re: Getting Values from Excel Get a row Action

    Hi Everyone,

    I have a problem with the function 'get a row' from excel in order to put the values in a sharepoint list. In that function appears this: 

    SergioDL99_0-1627264675078.png

    But, the key value (valor de clave) doesn't appear in excel format. I don't know why. Please need some advices to solve this issue.

     

    SergioDL99_1-1627264903845.png

     

    Just appear dynamic content for sharepoint, but not for Excel.

     

  • Community Power Platform Member Profile Picture
    on 24 Feb 2020 at 12:46:23
    Re: Getting Values from Excel Get a row Action

    It's the same issue, the output of the compose action is empty. 

     

    But actually looking at it now, there's a separate issue. The 'Get a row' action is embedded in an 'Apply to Each' for the List Rows Present action.

    However, it seems to be getting all rows, not just one. 

    It should be giving me just the values of the fields for the "Haiti" mission row, but it gives me all. 

  • abm abm Profile Picture
    32,464 Most Valuable Professional on 24 Feb 2020 at 12:34:42
    Re: Getting Values from Excel Get a row Action

    Hi @Anonymous 

     

    Thanks for your reply. Try to do the following:

     

    1. Before the Get Item step add a compose and set the value as body('List_rows_present_in_a_table')?['Mission'].

    2. Modify the Filter Query of Get Item and set the compose  output within the single quotes.

     

    Thanks

  • Community Power Platform Member Profile Picture
    on 24 Feb 2020 at 12:25:15
    Re: Getting Values from Excel Get a row Action

    So - the formula for the 'Get a row' excel action is: body('List_rows_present_in_a_table')?['Mission']

    See attached - this is a screenshot of the output.

    The column is definitely called 'Mission'

    Now, using the exact same formula in my ODATA query, it shows up blank: 

    Mission eq 'body('List_rows_present_in_a_table')?['Mission']'

     

    It's not able to get the value from the List rows present in a table action in the SharePoint Get items action. But it IS able to get the values in the Excel 'Get a row' action. body_excel.pngget_items.png

     

     

  • abm abm Profile Picture
    32,464 Most Valuable Professional on 21 Feb 2020 at 10:53:45
    Re: Getting Values from Excel Get a row Action

    Hi @Anonymous 

     

    Couple of ways to debug this.

     

    1. Add a compose actions and map the mission.

    2. Next make sure ODATA Filter you are using the correct name.

     

    Run the flow, check the history and make sure what compose output is. Then check the ODATA filter query.

     

    Let me know how it goes.

     

    Thanks

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started