You need to sign in to do that
Don't have an account?
dmcheng
Workarounds for Sites page to update standard object?
Hello. I have a client who wants external users to submit data via a Sites VF page and update Opportunity records.
Of course the Sites profile doesn't have permissions to update standard objects. Furthermore, the client does not want to purchase portal licenses for these external users.
I am considering two workarounds and am wondering if they are possible:
1. Write some Apex webservices and call them from the Sites page Visualforce controller.
-- Looking at the webservice documentation, this doesn't seem possible, but I thought I check to make sure.
2. Have the Sites page create a custom object record instead, and then write a trigger to update the opp record using the custom object.
-- Will the trigger be running in the system context and be able to update the opp?
Thanks
David
Of course the Sites profile doesn't have permissions to update standard objects. Furthermore, the client does not want to purchase portal licenses for these external users.
I am considering two workarounds and am wondering if they are possible:
1. Write some Apex webservices and call them from the Sites page Visualforce controller.
-- Looking at the webservice documentation, this doesn't seem possible, but I thought I check to make sure.
2. Have the Sites page create a custom object record instead, and then write a trigger to update the opp record using the custom object.
-- Will the trigger be running in the system context and be able to update the opp?
Thanks
David
All Answers