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
alivepjcalivepjc 

AJAX error question

Hi,

I am starting with the AJAX kit and I ran into a "permission denied" problem. I am running my app from an outside URL, not a native scontrol. I am able to log in fine:

if (sforceClient.getSessionId().indexOf("API_Session_ID") != -1)
{
alert("not logged in");
}
else
{
alert("logged in"); // i get this so login is good.
}

//right after that I call this:

var attach = new DynaBean("Attachment"); // <-- permission denied for any case: lead, contact,etc

I am running an asp.net app with this, the aspx page works fine, and does what it is supposed to do. I also changed my security settings to full trust as mentioned in another thread..

can we create attachment objects from AJAX?

Any help will be much appreciated,  thanks!

DevAngelDevAngel

Hi alivepjc,

Permission denied is a security issue.  You should put your website as a trusted site in IE and make sure that you have enabled cross domain data access.