How to host your web page using force.com site

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 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.

This Post Has One Comment

Leave a Reply