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 / Append to String Question
Power Automate
Answered

Append to String Question

(0) ShareShare
ReportReport
Posted on by 91

Hello, 

 

I have a flow that's working, but I want to clean up the result. I'm using PVA and PA to look up a name from a SharePoint list and return department/phone number(s). 

 

Question A, is it possible in the Append to String if there is no result, remove the result? 

 

Question B, the result always has the returned phone numbers at the top. How do I remove this? 

desired result.JPG
picture 1.JPG
flow.JPG
Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @zw2348 ,

     

    I made a sample for you.

    I created several alt number variables to simulate your sharepoint column values.

    vxiaochenmsft_0-1713492471778.png

    vxiaochenmsft_1-1713492487116.png

    @and(not(equals(item(), '')),not(equals(item(), null)))

    Phone Number : @{variables('Phone Number')} <br>

    vxiaochenmsft_2-1713492511558.png

    range(1,length(body('Filter_array')))
    Alt Number@{item()} : @{body('Filter_array')?[add(item(),-1)]} <br>
    vxiaochenmsft_3-1713492532577.png
    vxiaochenmsft_4-1713492558120.png

     

    vxiaochenmsft_5-1713492576387.png

     

    Best Regards,

    Wearsky

  • zw2348 Profile Picture
    91 on at

    @v-xiaochen-msft Thank you for this, I'm having issues expanding this. When there are multiple returns for example searching for Rob, the flow defaults to the first value found. I need help returning all values found. I've been researching but I'm not having much luck.

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 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard