<br clear="all"><div>Hi </div><div><br></div><div> I have tried to create a record using webservice from my Javascript Client. I created a contact successfully using webservice. Then i try to create a "Sales order" using webservice. But i got error <font color="#ff0000">"</font>
<font color="#ff0000"><span style="font-family:Consolas,'Lucida Console',monospace;font-size:12px;white-space:pre;background-color:rgb(255,255,255)">{"success":false,"error":{"code":"ACCESS_DENIED","message":"Permission to perform the operation is denied for id"}}</span> "</font></div>
<div><font color="#ff0000"><br></font></div><div><b><font color="#ff0000"> </font>My javascript code:</b></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
$("#submit_button").live("click", function(event, ui) {<br> var ccid="ACC1";<br> var createData='{"account_id":"'+ccid+'","bill_street":"MainRoad","invoicestatus":"Created","ship_street":"MainRoad","assigned_user_id":"'+userid+'","sostatus":"Created","subject":"Mysubjectoffirstsalesorder"}';<br>
<span class="Apple-tab-span" style="white-space:pre">        <br></span> $.ajax({<br><span class="Apple-tab-span" style="white-space:pre">                </span>type: "POST",<br><span class="Apple-tab-span" style="white-space:pre">                </span>url: "<a href="http://mysite/vtigerCRM510-RC/vtigerCRM/webservice.php">http://mysite/vtigerCRM510-RC/vtigerCRM/webservice.php</a>",<br>
<span class="Apple-tab-span" style="white-space:pre">                </span>dataType: "json",<br><span class="Apple-tab-span" style="white-space:pre">                </span>data:{'sessionName':session,'operation':'create','element':createData, 'elementType':'SalesOrder'},<br>
<span class="Apple-tab-span" style="white-space:pre">                </span>async:false,<br><span class="Apple-tab-span" style="white-space:pre">                </span>success: function(data) {<br><span class="Apple-tab-span" style="white-space:pre">                        </span>alert(data.success);<br>
<span class="Apple-tab-span" style="white-space:pre">                </span>}<br><span class="Apple-tab-span" style="white-space:pre">        </span>});<br>});</blockquote><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"><br>
</font></div><div><b>Note :</b> Also i tried account_id as 2 (accound id in DB) and account_id as 20x2( listtype.types id x account_id in DB )...These also not works....</div><div><br></div><div>please help me resolve this problem....</div>
-- <br><font face="comic sans ms,sans-serif"><span style="color:rgb(153,0,0)">BY</span><br><br><span style="color:rgb(0,102,0);background-color:rgb(255,255,255)">R.RAMPRASAD</span></font><br><br>