June 4, 2022

Guide for Force.com Site in Salesforce (10 min)

Site with Salesforce

Introduction to Force.com site

Companies are using Salesforce to keep all the business-specific data that include products, pricing, users, knowledge articles, testimonials, etc. This data can be accessed only by internal users who have Login credentials of Salesforce. What if any organization needs to share any of this data with the public and the world?

The traditional approach is creating a Website, which includes creating HTML pages, Styling those with CSS, and updating those as soon as data gets changed. This consumes a significant amount of time and cost and the chances of error are high.

The most optimized solution is Force.com Site.

With the force.com site, there is no need to setup separate website.

Without providing any authentications, If you want to share your organizational data with another organization or publicly then you should use the force.com site.

Live Example of force.com Site

We created a demo force.com site to demonstrate what it looks like.

Check it out from here

force.com site demo
force.com site demo

What Is Force.Com Site Domain?

Arrify force.com site

A domain is the identity of a site, a URL is a way to find a site and a site visitors can see and connect with when they arrive. In other words, when you make a domain then you really give the name to your webpage which is special and unique for all sites.

For example, if your organization (named Arrify) creates one public site for business partners, another for employees, and a third for providing customer support the domain for all of these are as follows:

  • https://arrify.force.com
  • https://arrify.force.com/partners
  • https://arrify.force.com/employees
  • https://arrify.force.com/customer-support

How To Create Force.Com Site

Create Force.Com Site & Register Domain Name

Total Time: 10 minutes

Go to setup & Search Sites

site1

Click on the setup button and search 'Sites'

Set domain name & Register Domain name

Screenshot from 2022 06 06 14 45 09

Give a site domain name & check the availability of the site domain name and If the domain name is available then click on Register my Salesforce site domain

Click on New

site3

After Register site domain name, To create the site click on New

Fill in site details & Click on save

site4

Fill site name, label, and attach visual force page at 'Active Site Home Page'

Make site Activate

site6

After creating the Site successfully Activate it

To visible sites, content makes accessibility public By clicking on Edit

site9

By-default accessibility is private, To visible sites content make accessibility as public by customizing 'Public Access Setting'

Force.com site is ready to visit

site11

To visit the force.com site click on the link given below

Sites content showing below

results

Account records showing below By Clicking on entering

Features Of Force.Com Site

Publicly available

Force.com site is available to all users. By-default accessibility of the site is private, To make the site publicly available, give the public access to the site by editing Public Access Settings.

Unauthenticated website

Force.com site is a fully Unauthenticated website. Because this site can access by all users without putting any credentials and just visit the site with the help of a link.

Force.com site allows a participant to respond without having a Salesforce user account.

Hosted on the force.com platform

Force.com site is managed by the force.com platform powered by Salesforce.

Use Case of Force.Com Site

Creating a Sites with real time Data

Force.com Sites help us to create our own websites with our own domain name. In this Corporate website, E-commerce applications, Recruiting website, Simple micro, and many more sites can be built using force.com sites.

Publish General FAQ or Guide to Product

FAQ stands for frequently asked questions, and it's a page on a website that gives quick answers to customer questions. The idea is to keep the answers short and direct so that people find info quickly.

Creating public forms

Salesforce Provide Different types of features like Visualforce pageLightning aura component, and Lightning web component that allow us to create a web form to collect data from website visitors.

One live example created by Arrify

Publish a user directory

You can make a user's directories and publish them to view phone numbers, email addresses, supervisors, departments, etc.

Publish a catalog of product

A product catalog is a list of product details that help buyers to make a purchase decision. These details include product features, descriptions, dimensions, price, weight, availability, color, customer reviews, and more.

What Are The Limitations Of Force.Com Sites?

Force.com Site has some limitations as below:

Limited visualization

There are some limitations to display records, Maximum size for a Visualforce page rendered as a PDF, the Maximum size of all images included in a Visual force page rendered as a PDF, and the Maximum size of HTML response before rendering when a Visual force page is rendered as PDF.

Required guest user licenses

Guest user licenses are required for creating force.com sites.

Hence, Enterprise, Unlimited, and Performance Editions come with 25 Guest User licenses and Developer Edition comes with 1 Guest User license.

Limited size to create websites

Enterprise, Unlimited, organizations are allowed to create up to 25 sites hence 25 guest user licenses and Developer Edition is allowed to create 1 site hence 1 Guest User license.

There is no session for the guest browser each guest user (site) has a unique profile public access setting).

These profiles are associated with a guest user license which gives them the ability to read/create on standard objects and full CURD on a custom object. By default, no CURD is given.

Sites Limits and Restrictions

Bandwidth is calculated as the number of megabytes served and received from both the site's origin server and the cache server.

EditionMaximum Number of SitesBandwidth Limit (per rolling 24-hour period per site)Service Request Time (per rolling 24-hour period per site)Maximum Page Views
Developer Edition1500 MB10 minutesN/A
Enterprise Edition251 GB for sandbox40 GB for production30 minutes for sandbox60 hours for production500,000
Unlimited EditionPerformance Edition251 GB for sandbox40 GB for production30 minutes for sandbox60 hours for production1,000,000
Limit of Force.com site