• Eng Cheryl
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi all,

I have public site with Visualforce Page. Basically, this is a public site for guest users to fill in a form without having to log into Salesforce. After completion of the form, the form information is saved as an object record in Salesforce.

When running the site in preview mode, the record is successfully saved in Salesforce. However, when running the actual site, the record is not saved and there is no debug logs.

A flow that is performing the saving of record is embedded in the Visualforce page and will run in Lightning Runtime.
VisualforcePage_EmbeddedFlow

I have also performed below configurations:
1. In Site Details > Public Access Settings > Object Settings: Read, Create, Edit permissions have been enabled for guest user profile. Field permissions have also been enabled.
ObjectSettings_ObjectPermissions
2. In Site Details > Public Access Settings > Custom Settings Definitions: GW_Volunteers.Volunteers Settings custom settings have been added.
- In Volunteers Settings custom settings, Grant Guest Users Update Access is checked.
VolunteerSettings
3. In Site Details > Public Access Settings > System Permissions: I have also enabled API Enabled, Modify Data Classification and Run Flows permissions
SystemPermissions
However, the record is still not saved when I run and complete the form on the actual public site. A record is only saved when the preview site is run.
Is there any other additional configurations I would need to enable/ perform for the saving of record to work?
Also, is there a way to add debug logs for this public site so there would be a clearer indication of the error?
Thanks.