cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ManishHiraServi
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.

 

Help

 

0 REPLIES 0

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 (3,089)