web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 6jqdFNuoBPE8+nkB8cK/cH
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?
I have the same question (0)
  • abm abm Profile Picture
    32,585 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

  • 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,585 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: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. 

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

     

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard
Loading complete