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 Automate
Unanswered

Split word

(0) ShareShare
ReportReport
Posted on by 10

I want to cut word like 'CCA134009876' to '134009876'.

What should I do?

Thankyou.

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey @davepokpong 

     

    The formula would be - 

    split(outputs('Compose'),'1')[1]
     

    CFernandes_0-1653022796071.png

     

     
    This will only work if the number starts with digit '1'. 
     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • SimonSmith84 Profile Picture
    112 on at

    Hi @davepokpong

     

    Could you be more specific about the criteria here? 

     

    For this exact solution, CFernandes' solution is perfect, but as he said, it'll only work if the first character is a "1". Just by looking at your question, I can see a few different logical methods that could be applied (which would require different methods).

     

    1. Removing all text from the string, leaving just numbers
    2. Removing the first 3 characters of the string
    3. Remove everything before the first "1" (Cfernandes has answered this one)

    If you can clarify the requirements, you'll get a much more suitable answer 🙂 

  • davepokpong Profile Picture
    10 on at

    Hi, @SimonSmith84 

     

    It's a second choice. I want to 'removing the first 3 characters of the string'.

    What I should do?

     

    Thankyou.

  • Verified answer
    SimonSmith84 Profile Picture
    112 on at

    You can use the 'Compose' feature with an expression inside it, like this:

    SimonSmith84_0-1653033109120.png

    the expression would be written as follows:

    substring(variables('davepokpong'),3,sub(length(variables('davepokpong')),3))
     
    Obviously in your specific case, you'd replace the variable name with whatever your variable is called. If you'd like to understand the functions that are used a bit better, the below articles can help.
     
     
     
    I hope this helps! 
     
     

     

  • davepokpong Profile Picture
    10 on at

    It works!

     

    Thankyou @SimonSmith84 

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard