function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
richfer_richfer_ 

How to update standard object value from site?


I'm retrieving the value of a standard object and diaplaying in the Site. When I try to update the value or try creating a new record it requires a user to log in. I want to update or insert a record without logging in. Is ti possible for me to achieve it?
Arunkumar RArunkumar R
Hi Richfer,

It's possible in site. Do your logic as usual in apex and visualforce page.

Some of the steps to follow in salesforce,

1. After your logics done means go to your site --> Public Access Setting then enable the profile level permission such as object level, field level.

2. Because force.com site having the different profile, so give permission the add you apex class and visualforce page site.


It will work no need to log in as a user.
richfer_richfer_
The following is the message I'm getting, when trying to update or insert in the object

Authorization Required

You must first log in or register before accessing this page.
If you have forgotten your password, click Forgot Password to reset it.