<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">related_to is mandatory on potentials,
so you can't leave it empty.<br>
<br>
<br>
On 01/08/12 22:39, Peter Dimov wrote:<br>
</div>
<blockquote
cite="mid:CAKpZEDdR4MOGxi9iEnbaHpkNTNg-XoJEY7hf=E2jWa62DMj1Cg@mail.gmail.com"
type="cite">Hello Vtiger Developers,
<div><br>
</div>
<div>I do have an issue with vtwsclib and was wondering if anyone
has been able to create a potential with it. </div>
<div><br>
</div>
<div>The code I am trying does not work</div>
<div><br>
</div>
<div>
<div>$module = 'Potentials';</div>
<div>$record = $client->doCreate($module, Array(</div>
<div> 'potentialname'=>'test',</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>
'closingdate'=>'',</div>
<div> 'related_to'=>'',</div>
<div> 'sales_stage'=>'',</div>
<div> 'assigned_user_id'=>'1'</div>
<div> ));</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span> </div>
<div>if($record) {</div>
<div>$recordid = $client->getRecordId($record['id']);</div>
<div>echo $recordid;</div>
<div>}</div>
<div><br>
</div>
<div>If anyone has a working example of what array should I send
I would greatly appreciate it!</div>
<br>
<div class="gmail_quote">On Wed, Aug 1, 2012 at 3:08 AM, ram
prasad <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ramtrg@gmail.com" target="_blank">ramtrg@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,
<div><br>
</div>
<div> I want to Sync my local Sqlite database(mobile)
with Vtiger Server Database. I know, i want to use
Webservices for this task.So Now using javascript
"vtwsclib-1.4" library and login,other things works fine.
I have seen <a moz-do-not-send="true"
href="https://wiki.vtiger.com/index.php/Mobile_API#mobile.fetchallalerts"
target="_blank">Mobile API </a>. Which one i want to use
Mobile API or normal Werbservices tutorial. </div>
<div><br>
</div>
<div> In
<a moz-do-not-send="true"
href="https://wiki.vtiger.com/index.php/Mobile_API#mobile.fetchallalerts"
target="_blank">Mobile API</a> simply starts with
mobile.fetchrecord. What are the initial steps to use this
Mobile API.Please provide any sample Application with
mobile API for sync.Please provide any document for Mobile
webservices except
<a moz-do-not-send="true"
href="https://wiki.vtiger.com/index.php/Mobile_API#mobile.fetchallalerts"
target="_blank">Mobile API</a> .<span class="HOEnZb"><font
color="#888888"><br>
-- <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)">R.RAMPRASAD</span></font><br>
<br>
</font></span></div>
<br>
_______________________________________________<br>
<a moz-do-not-send="true" href="http://www.vtiger.com/"
target="_blank">http://www.vtiger.com/</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Best Regards,<br>
<br>
Petar Dimov<br>
<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
</body>
</html>