<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 &quot;Sales order&quot; using webservice. But i got error <font color="#ff0000">&quot;</font>
<font color="#ff0000"><span style="font-family:Consolas,&#39;Lucida Console&#39;,monospace;font-size:12px;white-space:pre;background-color:rgb(255,255,255)">{&quot;success&quot;:false,&quot;error&quot;:{&quot;code&quot;:&quot;ACCESS_DENIED&quot;,&quot;message&quot;:&quot;Permission to perform the operation is denied for id&quot;}}</span> &quot;</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">
  $(&quot;#submit_button&quot;).live(&quot;click&quot;, function(event, ui) {<br>  var ccid=&quot;ACC1&quot;;<br>  var  createData=&#39;{&quot;account_id&quot;:&quot;&#39;+ccid+&#39;&quot;,&quot;bill_street&quot;:&quot;MainRoad&quot;,&quot;invoicestatus&quot;:&quot;Created&quot;,&quot;ship_street&quot;:&quot;MainRoad&quot;,&quot;assigned_user_id&quot;:&quot;&#39;+userid+&#39;&quot;,&quot;sostatus&quot;:&quot;Created&quot;,&quot;subject&quot;:&quot;Mysubjectoffirstsalesorder&quot;}&#39;;<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: &quot;POST&quot;,<br><span class="Apple-tab-span" style="white-space:pre">                </span>url: &quot;<a href="http://mysite/vtigerCRM510-RC/vtigerCRM/webservice.php">http://mysite/vtigerCRM510-RC/vtigerCRM/webservice.php</a>&quot;,<br>
<span class="Apple-tab-span" style="white-space:pre">                </span>dataType: &quot;json&quot;,<br><span class="Apple-tab-span" style="white-space:pre">                </span>data:{&#39;sessionName&#39;:session,&#39;operation&#39;:&#39;create&#39;,&#39;element&#39;:createData, &#39;elementType&#39;:&#39;SalesOrder&#39;},<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>