cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jamesfisher
Frequent Visitor

Removing extra semi colons appearing in column

Hello!

 

I have a flow that capture 'one or more approver' and put their name into a 'Document Reviewed By' column in the Document Library in SharePoint. I added the semi colon in the flow as shown before but it will always show an extra one after the final name. 

 

Is there a way to show this without the extra semi and even better, neither of the two at the end!? 🤓

 

semicoloninpowerautomate.pngsemicolonindocumentlibrary.png

1 ACCEPTED SOLUTION

Accepted Solutions
PrasadAthalye
Community Champion
Community Champion

I see that you are updating Item inside Apply to each. You should do it outside the loop. And you can use substring expression like below...

substring(variables('approverslist'), 0, lastIndexOf(variables('approverslist') ,';'))

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

3 REPLIES 3
PrasadAthalye
Community Champion
Community Champion

I see that you are updating Item inside Apply to each. You should do it outside the loop. And you can use substring expression like below...

substring(variables('approverslist'), 0, lastIndexOf(variables('approverslist') ,';'))

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Thanks so much for the reply @PrasadAthalye . I've tried to apply this but not sure if I am doing it correctly. I'm getting an error and not sure how to resolve it. Have I moved the update item correctly?

 

jamesfisher_0-1629975588444.png

 

Actually @PrasadAthalye  - I suspect you were suggesting something like this! Appears to be working! Thank you!!

 

jamesfisher_2-1629976444343.png

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,754)