You need to sign in to do that
Don't have an account?
how to enable DML for web/visualforce page? how to update security settings to allow DML from web?
I am hoping this is an easy question:
I am invoking an "action" when a visualforce web page is loaded.
<apex:page contentType="text/xml" controller="MyPageController" action="{!MyUpsertAction}" showHeader="false">
From extensive tracing and debugging, I know MyPageController is working and MyUpsertAction is working
up until the moment it tries to do an "upsert".
I can't figure out how to allow DML operations initiated through a web/visualforce page.
I get the dreaded "Authorization Required" page displayed (instead of the XML my page should be serving up).
I also get an error message sent by email.
Apex script unhandled exception by user/organization: 005A0000000IePu/00DA0000000Jcjx
Visualforce Page: /
caused by: System.Exception: DML currently not allowed
I am sure there is a quick fix by clicking some option somewhere on Saleseforce,
but I am really pulling my hair out trying to find it!
Please be specific about the steps I need to follow to solve this problem.
I am new to developing on Salesforce, so if you just say "enable DML for the site",
I won't have a clue where to navigate and click on the Salesforce web pages.
Any suggestions would be appreciated.
David Jones
dxjones@gmail.com