Hi!
I would like to get company name from the sender's mail. I've been using 'indexOf' expression, but it is giving me a number as result, instead of the name. By any chance, is there any other expression I can use?
Example:
-Email: flor.flores@random.com
-Expected result: random
-Result: 11
Any help would be greatly appreciated
Thank you, best regards!
My flow:
Expression: substring(variables('varTexto'),outputs('IndexOF_(Compose)'),outputs('Characters_number_(Compose)'))
Email addresses are tricky 😉
Some issues that you might encounter:
Address with subdomains:
jim@salesdepartment.example.com
jim@example.co.uk
Do you want the 2nd level domain or the 3rd level?
Address with IP:
jim@[192.168.2.1]
Fortunately, this does not happen often.
Address with International domain name (->Punycode)
I have no experience with this, but it looks like a lot of fun🤣
And many more
What I'm trying to say is: don't always expect to get the result you want.