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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Questions on using Select
Power Automate
Answered

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
    69,022 Most Valuable Professional on at

    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

     

     

  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    @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

    @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
    69,022 Most Valuable Professional on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard