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
Austin VillanuevaAustin Villanueva 

how to get logged in user email with javascript alone

Hi guys, right now I'm struggling to get the email of the user from salesforce. 
Basically, my setup is, my current page is inside iframe of softphoneIFrame(this is the iframe use for opencti adapter url) 
if I use visualforce I can get the email by using {!$User.Email} but how can I achieve the same thing without using visualforce or apex,
I tried using the opencti api functions but there is no public function to get the logged in user's email address. I hope you can help me guys.

Thank you. 

Austin