Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Return a single value for a text field from an array of items

(0) ShareShare
ReportReport
Posted on by 24

I'm trying to create a flow that using something like the data below.  Basically a user enters a PO# on PowerApp and it launches this flow.  What I can't figure out is how to get it to populate one field for purchase date on my word template.  I use a variable for the date, it returns the date multiple times. If I just use the dynamic value for "Date Purchased", it corrupts the document.

 

Here's an example of how my data is structured in a SharePoint list:

PO#Serial #ModelDescriptionPrice Date Purchased
14785212345Dell LatitudeDell Latitude 5430100003/27/2023
14785254321Dell LatitudeDell Latitude 5430100003/27/2023
14785267890Dell LatitudeDell Latitude 5430100003/27/2023

 

csteiner73_0-1679937061529.png

csteiner73_1-1679937149064.png

 

The Array variable fills out a repeating table in my Word template, but on the template there's only a single place for the "Date Purchased"

 

csteiner73_2-1679938367284.png

 

 

 

 

 

  • v-bofeng-msft Profile Picture
    on at
    Re: Return a single value for a text field from an array of items

    Hi @csteiner73 ,

     

    This expression is to get the date value of the first item.

     

    Best Regards,

    Bof

  • csteiner73 Profile Picture
    24 on at
    Re: Return a single value for a text field from an array of items

    That worked perfectly!  Thanks a ton.  So I understand, what does that expression do?

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Return a single value for a text field from an array of items

    Hi @csteiner73 ,

     

    Please try:

    outputs('Get_items')?['body/value'][0]['DatePurchased']

     

    Best Regards,

    Bof

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,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow