Make your lightning components publicly accessible.

Posted on November 5, 2020 Post Thumbnail

Hi Trailblazers, In this blog post I'm going to make a lightning component publicly accessible.

Accessible like the following demo, Although I have created it in LWC and deployed it to Developer Edition Org.

Check Demo

Let's Start.

We are going to expose this component which we created in previous blog.

https://heysalesforce.org/posts/how-to-use-animation-and-dropdown-in-lwc-lightning-web-component

Youtube Video for this.

https://www.youtube.com/watch?v=eq0E3Ftxyk4

First we are going to create a community.

Need to activate communities in Salesforce.

Setup > Communities Setting > Enable Communities and Choose a domain.

Please look at the following picture for reference.

Please look at the following picture for reference.

Now create a community.

Now create a community.

After clicking on New Community, Choose a template.

Choose a template.heySfTest

Give it a name.

Give it a name.

You'll be navigated to Workspace of community.

community

Click on Builder and remove all the components by un tick.

Untick

After deleting everything.

It'll look like this.

everything

Now, Add a Heading component just like following picture.

Add a Heading component

At last add your component, which you want to expose publicly accessble.

Decorate this page, It depends on your creativity.

Publish this.

Publish this.

For publicly Access,

Click on home above and give access like this.

Check following picture for reference.

Click on home above and give access like this.

You'll get the links from communities like this.

https://miricommunity01102020-developer-edition.ap15.force.com/heySfTest/s/

As you can see, It's working now.

This is how, We can expose publicly a component from Salesforce org.

I hope It helped you somehow.

If you have any question Ask Me

Thanks for Reading:

Youtube Video for this.

https://www.youtube.com/watch?v=eq0E3Ftxyk4

Write a comment for suggestions.


1527
0

Tags: #lwc #lightningComponent #communityCloud

Comments

There are no comments yet.
Your message is required.

Get notified of new posts