Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

How to split a string based on first instance of number when field format is not consistent

So we have a requirement to take a value from our CRM DB eg. 0123456AB and then to reformat it as AB0123456 to populate another external third party system. 


When building the original flow, I thought this was simple:- concatenate a Right(Text,2) , and left (text,7) to build the new value.


The problem when then looking at the bigger dataset was that sometimes the number portion of the text fields is not 7 characters but 6 and the character portion can either be 1 or 2 characters in length too . So how do I work around differing lengths of the numerical and text portions.  I don't seem have the mental capacity to work this out.





Helpful resources

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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,232)