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 :
Power Platform Community / Forums / Power Automate / Questions on using Select
Power Automate
Unanswered

Questions on using Select

(0) ShareShare
ReportReport
Posted on by 1,934 Moderator

I am trying to use Select to pull values out of a SharePoint get properties connector.

Here's the table:

annetoal_0-1617917934002.png

1. I'd like to have another field named index but I need help with how to increment the value for that field.

2. I need help formatting the date fields to be d-MMM-yyyy.

 

I'd like to take the output from this Select and feed a Send mail connector. I'm using this expression:

output(body('Select')?['email'])

It's returning this error:

InvalidTemplate. Unable to process template language expressions in action 'Compose_2' inputs at line '1' and column '38868': 'The template language expression 'output(body('Select')?['email'])' cannot be evaluated because property 'email' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.

Could someone please show me what I'm doing wrong here and how to fix it?

 

Thank you,

Anne

 

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    Re: Questions on using Select

    The problem is that Data Select requires an array as input.  Get File Properties returns an individual object with all the properties in it so you can't use it as input for a select.  The individual properties are already available as dynamic content from the Get File Properties.  You don't need to do anything to be able to use them.

  • Paulie78 Profile Picture
    8,422 Moderator on at
    Re: Questions on using Select

     

     

  • Verified answer
    Mira Ghaly Profile Picture
    11,413 Moderator on at
    Re: Questions on using Select

    @annetoal 

     

    To format date use below :

     

    Expression:

     

     

    formatdatetime(item()?['Modified'],'dd-MM-yyyy')

     

     

    Mira_Ghaly_0-1617919349886.png

    To use the output of the Select in an Email; you can use Create HTML Table as below:

    Mira_Ghaly_0-1617919561538.png

     

  • annetoal Profile Picture
    1,934 Moderator on at
    Re: Questions on using Select

    @Pstork1 Yes, but there's so much stuff in that array that I don't need, I was trying to pare it down just to the fields that would be used in the Flow, hoping it would be easier to manage that way. I understand your point, and maybe it is making things more difficult than they should be.

     

    Thanks,

    Anne

  • Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    Re: Questions on using Select

    I understand, but you can't use a select to do it and I don't know of any easy action to remove properties from a JSON object.  They are all available by name now.  I don't see any way to make it easier to manage

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard