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
Steve ConnellySteve Connelly 

Need to create a lightning component to ID logged in users account in Experience Cloud

I see that there are many Experience Cloud (EXC) components that want an account ID. How do I build (or just find) a new lightning component that will capture the account ID of the logged in user in such a way that I can use it in these other components?

I am new to working with Lightning components and SF coding in general. If any of you can point me in the right direction I would greatly appreciate it. Especially if there are any examples out there similar to what I am trying to do that I can leverage and learn from.

As always, any help is greatly appreciated.
Best regards, 
Steve
Best Answer chosen by Steve Connelly
SwethaSwetha (Salesforce Developers) 
HI Steve,
Recommend reviewing https://www.infallibletechie.com/2020/03/how-to-show-logged-in-users-account.html

The scenario here is with flows to fetch the contact Id https://developer.salesforce.com/forums/?id=9062I000000DHiJQAW. You can fetch account Id in a similar fashion.

Thanks

All Answers

SwethaSwetha (Salesforce Developers) 
HI Steve,
Recommend reviewing https://www.infallibletechie.com/2020/03/how-to-show-logged-in-users-account.html

The scenario here is with flows to fetch the contact Id https://developer.salesforce.com/forums/?id=9062I000000DHiJQAW. You can fetch account Id in a similar fashion.

Thanks
This was selected as the best answer
Steve ConnellySteve Connelly
Actually, these are super helpful! I think that I can leverage these to do a few things that I want to do to customize the user experience in uour site. Thank you so much!
Steve