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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,355)