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

Notifications

Announcements

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? 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard