How to host your web page using force.com site

The Salesforce platform allows users to host a webpage or application accessible to the public without requiring login. Users create a visualforce page, then register a domain and create a new active site. Appropriate permissions must be set in public access settings to permit access to the visualforce page, apex class, and assorted objects.

Yes, the Salesforce site enables you to host your web page( Visualforce page )/ application from your Salesforce org. The users can publicly access information (that you exposed on your page) without login. Let’s see how we can do that.

Step 1:

Create a visualforce page in your org.

Goto > setup > quick find > search pages > click on Visualforce page.

Click on “New”. Develop your page according to your needs.

Step 2:

Goto > setup> search “site” > click on sites.

Enter your domain name and check. Register your domain.

Now Click on “New”. Enter the site label and name.

  • Select your visual force page in “Active Site Home Page”
  • Check the “Active” checkbox.
  • Click on the Save button.

After saving click on “Public Access Settings” and give the required permissions for this profile. Like Visualforce page, apex class, custom object, standard object access, etc.

Copy your site URL and try it in a different browser.

References:

Thanks

Arun Kumar

Arun Kumar
Arun Kumar

Arun Kumar is a Salesforce Certified Platform Developer I with over 7+ years of experience working on the Salesforce platform. He specializes in developing custom applications, integrations, and reports to help customers streamline their business processes. Arun is passionate about helping businesses leverage the power of Salesforce to achieve their goals.

Articles: 162

One comment

Leave a Reply

Discover more from SFDC Lessons

Subscribe now to keep reading and get access to the full archive.

Continue reading

Discover more from SFDC Lessons

Subscribe now to keep reading and get access to the full archive.

Continue reading