Hi<div> I am using WSClient library for webservice access in my Javascript client.I Logged in properly. When i try to do doQuery(query,callback) method, error returns as <font color="#cc0000">"<span style="background-color:rgb(225,235,242);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px">ACCESS_DENIED, Permission to perform the operation is denied for query</span>".</font></div>
<div><font color="#cc0000"><br></font></div><div><br></div><div><b>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">
var query="SELECT id FROM vtiger_ws_entity WHERE name = 'Accounts' ";<br>client.doQuery(query,postExecAccQuery);<br>function postExecAccQuery(result, args) {<br><span class="Apple-tab-span" style="white-space:pre">        </span>console.log("query result-->"+result);<br>
<span class="Apple-tab-span" style="white-space:pre">        </span>if(result) {<br><span class="Apple-tab-span" style="white-space:pre">                </span>var columns = client.getResultColumns(result);<br><span class="Apple-tab-span" style="white-space:pre">                </span>alert('COLUMNS: ' + client.toJSONString(columns));<br>
<span class="Apple-tab-span" style="white-space:pre">                </span>alert(client.toJSONString(result));<br><span class="Apple-tab-span" style="white-space:pre">        </span>}<br>}</blockquote><div><div><br></div><div>Result : <span style="color:rgb(204,0,0)">"</span><span style="color:rgb(204,0,0);font-size:13px;background-color:rgb(225,235,242);font-family:'Lucida Grande','Trebuchet MS',Verdana,Helvetica,Arial,sans-serif;line-height:18px">ACCESS_DENIED, Permission to perform the operation is denied for query</span><span style="color:rgb(204,0,0)">".</span></div>
<div><span style="color:rgb(204,0,0)"><br></span></div><div><div>Also I tried this query for getting "Account" module id from database.I want to do ModuleID+"x"+AccountID. Is it any simple method to this from javascript?</div>
<br class="Apple-interchange-newline"></div><div><br></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>
</div>