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 Apps / How to remove the firs...
Power Apps
Unanswered

How to remove the first and last character of a string of text inside of a collection

(0) ShareShare
ReportReport
Posted on by

 

Hello all,

 

I have the following code to create an "Info" collection with a column called "AttributesNew" :

 

jharville_0-1628642099259.png

 

The issue I'm having is under my "AttributesNew" column, the text it results in has a "," in the beginning and end of the string of text. Here's an example of an output it'd give:

 

,one,two,three,four,five,

 

I'd like to remove the first both the first and last comma of that string of text so that the output is this:

 

one,two,three,four,five

 

How would I modify my existing code to account for this functionality? I've messed around with using the Left() and Len() function but no luck as of yet.

 

Thank you!

Categories:
I have the same question (0)
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    Your code looks like it is adding those commas for you - see circled expressions. Remove those and those extra commas should disappear:

    BCLS776_0-1628643889877.png

     

  • jharville Profile Picture
    on at

    Sometimes I look at code so long that I don't see the extreme obvious lol. Thank you for your help!

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard