Good day Salesforce Dev's!
I have a question for you, hope you have the solution for this.
Im implementing a Flow that fires when a record (account) is created. When the phone number is created, in the field input you enter a string of numbers, what the flow will receive is for example: 15714788202
The idea of the flow, is instead of generating that number, that the visible phone number in the record has a mask like this: +1 571-478-8202. So the flow should receive the string, add the +1 at the beginning, add a space and then after the 571 add a "-" and so on.
It is possible or should I create an apex class that receives that string and returns that mask? (not recommended)
Trying to brainstorm this, the easiest way would be the apex class but it seems that the client want to use only salesforce features and no external help (like, the apex class). I Think that a formula might help, but dont know how to apply it.