+ Start a Discussion

LWC call to APEX not working in Community

I have a lightning web component that uses @wire to call to APEX. It works just fine when I place the component on a lightning page and display from a Salesforce user. However, the APEX never get's called when I place the component on a Community page.
Is there a setting that needs to be done to allow access from a community?
Joe ChengJoe Cheng
You need to configure the Guest User Profile in your community.

Go to All Communities -> Builder -> Setting (a gear icon) -> General -> Guest User Profile. Then grant the apex class permission to it.