product icon

Task 2.2: Set up the Callback URL (Force.com Sites Feature)

To be able to push session data back into Salesforce, you must set up the Force.com Sites feature and the Rescue Post-to-URL feature.

Before you begin:
Important: You must be a Salesforce administrator to complete these instructions.

Follow this procedure to set up the Force.com Sites feature:

  1. In Salesforce, click your account name and then Setup at the top of the page.
  2. In the Quick Find box, go to Sites and Domains > Sites.
  3. Enter your Force.com domain name at the bottom of the page and click Check Availability.
  4. Accept the terms and conditions and click Register My Force.com Domain.
  5. Click New at the top of the Sites section.

    Result: The Site Edit page is displayed.

  6. Follow all instructions on the Site Edit page to create a Site.
  7. Make sure the Lightning Features for Guest Users checkbox is disabled.
    Tip: You must enter information unique to your organization in some fields, but this does not impact the integration
  8. Click Save.

    Result: The Site Details page is displayed.

  9. Go to the Site Detail section and click Public Access Settings.

    Result: The Profile page is displayed.

  10. Go to the Enabled Visualforce Pages section and click Edit.

    Result: The Enable Visualforce Pages Access page is displayed.

  11. Add the following available Visualforce pages to the Enabled Visualforce Pages list on the right:
    • rescuebygoto.RescueHandleURLPost
    • rescuebygoto.RescueHandleInitialURLPost
    • rescuebygoto.RescueRequestLensPinCode
    • rescuebygoto.RescueRequestPinCode

    Result:

  12. Save your changes and return to the Profile page.
  13. Go to the Enabled Apex Classes section, and click Edit.

    Result: The Enable Apex Class Access page is displayed.

  14. Add the following available Apex Class to the Enabled Apex Class list on the right:
  15. Save your changes and return to the Profile page.
  16. In the Profile Detail section click Edit.

    Result: The Profile Edit page is displayed.

  17. In the Standard Object Permissions section, select Read access for the Cases standard object.
  18. If you are using Record Types, make sure to select the appropriate ones for public guest visibility.
  19. In the Custom Object Permissions section, select Read & Create access for the Rescue Logs and Rescue Sessions custom objects. This maps Rescue session activity back to the originating case.
  20. Save your changes and return to the Profile page.
  21. In the Custom Field-Level Security section, go to Rescue Log and click View.
  22. On the Rescue Log Field-Level Security page, click Edit.
  23. Select all editable fields and click Save.
  24. Click Back to Profile.
  25. In the Custom Field-Level Security section, go to Rescue Session and click View.
  26. On the Rescue Session Field-Level Security page, click Edit.
  27. Select all editable fields and click Save.

    Result: You are done with setting up the Force.com Site.

Article last updated: 9 January, 2023