Skip to main content

Setting up Custom SFDC Site for Secure API Connection

 

Step: 1 Register Salesforce Site Domain

Setup >> Quick Find Box >> ‘Sites’ >> Register My Salesforce Site Domain as shown:

  1. If enhanced domains are enabled in your org, your Sites domain includes your org’s

My Domain in the format MyDomainName.my.salesforce-sites.com.

  1. If enhanced domains aren’t enabled in your org, select your Salesforce Sites

subdomain.

  1. Enter a unique name for your Salesforce Sites domain.
  2. Click Check Availability to confirm that the domain name you entered is unique. If it

isn't unique, you are prompted to change it.

  1. Read and accept the Sites Terms of Use by selecting the checkbox.
  2. Click Register My Salesforce Site Domain.
Read and accept the Sites Terms of Use > Register My Salesforce Site Domain.




Step: 2 Create and Edit Salesforce Sites

 

  • In the site section click New.
    2) Enter information about your site.
    3) In the field: “Default Web Address” enter ’consensus’ as shown below.
    Create and Edit Salesforce Sites

    4) In the field: Active Site Home Page choose ‘Sso_Flow_Page’ as shown below.
    Active Site Home Page

    5) Checkbox "Active". Leave all other fields as is, then click save.
     
    “Active” > Save

    6) Click on the site label that you just created (the title of the Site you just created).
Site Label

7) Click on Public Access Settings.

Public Access Settings

8) In the Apex Class Access section, click edit.

Apex Access section



9) Add Classes as shown below and click save.

●    DemoManager (For webhooks)
●    SsoManager ( For Secure API)
●    IntegrationManager (For Opp sync)
●    IntegrationManager1 (For Opp sync)
●    IntegrationManager2 (For Opp sync)
 

Apex Class Access


10) Go to System Permissions (in the same Public Access Settings as before) and enable View All Custom Settings.

View All Custom Settings.

11) Go to Object Settings (in the same Public Access Settings as before), find Consensus Users Info, and give read permissions for the fields: 
●    Consensus email
●    Salesforce email

Object Settings > Consensus Users Info

 

Step: 3 Configuration

  1. Open Consensus Configuration in SalesForce
  2. Checkbox Enable Secure API
    Consensus Configuration in SalesForce > Enable Secure API

     

  3. Fill “Public site URL” field from the Public Site URL for the Public Site you just created.
    Public Site URL

     

“Public site URL” link should be copied from:

  1. Salesforce Setup
  2. Enter “Sites” into Quick find field
  3. Open “Sites”
  4. Copy Site URL from the Site you just created
    Public site URL 

     

 

You will also need this Site URL later when setting up CRM Sync.

Be the first to reply!

Reply