
Announcements
In our company, when we create a user AD, the email address is composed with his lastname and firstname.
For example "Jhon Doo" will be "jhon.doo@contoso.com"
The problem in some names, they have special characters or space.
Does exist a solution to slug a string on PowerAutomate to genrate the email address ?
For example :
O'neal => oneal
Da Costa => dacosta
Bâkta => bakta
Gérémy => geremy
Thanks
Hi @Rifton007,
One of the approaches could be to create an array with special characters and replace them in a loop. @AlanPs1 has written a great blogpost about this:
In your case the Array variable could be something like this:
[{"character":"â", "replacement":"a"}, {"character":"é", "replacement":"e"}]
In the loop you could use an expression like this:
replace(variables('Sanitise'), item()['character'], item()['replacement'])