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
SCOTT purcellSCOTT purcell 

I need to capture the current userName when logging in to salesforce using salesforceLogin();Appery

I am using Appery so hopefully someone can help, I need the current users name to do soql queries, but I can not find any documentation on how to capture the userName and store it in localStorage for use. 

I have been using salesforceLogin(); to login to salesforce, but cant figure out how to get the username or id from this. 

Basically I need the same info as a UserInfo.getUserName(); call in Apex

Please help, TIA.