Notifications
Announcements
I have a SharePoint single line of text column that I gather in a PowerAutomate flow.
I would need to take the string from this column and trim it down to 15 characters if it's larger than 15 characters.
Could anyone tell me how to do it?
Thanks.
Hello @leolsdn
Follow my reply on this post:
https://powerusers.microsoft.com/t5/General-Power-Automate/At-wits-end-with-Logic-App-Substring-PLEASE-HELP/m-p/644511/highlight/false#M54696
if you need help let me know
Hi @leolsdn ,
Could you please share an example of the original string and explain the 15 characters that you want to trim?
Best Regards,
Alice
Community Support Team _ Alice ZhangIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Alice, This is what I have:
As you can see, the SFDC ID is longer than 15 characters and I need it to be trimmed down to 15 characters. Following @Jcook I managed to get its length in PowerApps using: length(outputs('StoreSFDC'))
Here is the flow so far:
and in the end I want the 15-character SDFC variable to be written in a separate SharePoint list:
Thanks again for any help you can provide me. Andrei.
OK. Managed to do it!!!
Thanks for all the hints!
Here is the logic that did it:
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 522 Super User 2025 Season 2
Tomac 364 Moderator
abm abm 243 Most Valuable Professional