function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
arjuna Rajput 29arjuna Rajput 29 

Anyone Can tell me formula to extract the domain name from email in Flows

suppose email as ac@gmail.com
after extraction we got gmail only.
we put this formula in resorce formula field
SwethaSwetha (Salesforce Developers) 
HI Arjuna,
You can try below  formula for email domain when using record trigger flow
MID({!$Record.Email} , FIND(“@”, {!$Record.Email}  )+1 ,  FIND(“.”, {!$Record.Email} , FIND(“@”, {!$Record.Email} )) - FIND(“@”, {!$Record.Email} )-1 )

In case of any other flows replace {!$Record.Email} with the email field

Related: https://salesforce-flowsome.com/get-email-domain-using-formula-in-flow/

If this information helps, please mark the answer as best. Thank you
arjuna Rajput 29arjuna Rajput 29
hI THIS FORMULA shows error in flows
SwethaSwetha (Salesforce Developers) 
HI Arjuna,
What is the error you are seeing? I tried the above-mentioned formula with text as datatype with record triggered flow on the Contact object and it works for me.

User-added image
Thanks
arjuna Rajput 29arjuna Rajput 29
yes but when i debug the flows it shows syntax error