+ Start a Discussion
sfdcksfdck 

Is there any way to update standard object in sites

Hi , 

 

     I saw in salesforce documentation i.e we have create and read permission for standard oject in sites , I am trying to update contact object from the site . Is there anyway to proxy the contact update thru a System Administrator profile for sites user.

 

 

Thanks in Advance.

Solution's are highly Appreciated. 

sfdcfoxsfdcfox

You could call through a "without sharing" class to side-step the standard sharing model, or you can use a web services call internally to a global web service method. Either way, the action will be logged as the Sites user, not the System Administrator. You should make sure that appropriate safeguards are in place to make sure the Sites user can't update a record that they shouldn't be able to.