Hi Alan,<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
&quot;Warning: require(user_privileges/user_privileges_.php): failed to open stream: No such file or directory in</blockquote><div> <br>You need to pass the user instance to vtws_create API.Make sure $current_user is declared as global and is intitlazied. <br>
$current_user will be set in the entry point index.php (please do not set it else-where)<br></div><br>Regards,<br>Prasad<br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 12:19 AM, Alan Lord (News) <span dir="ltr">&lt;<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On 24/08/10 19:10, Prasad wrote:<br>
&gt; Hi Alan,<br>
&gt;<br>
&gt;     $newProject = Project::getInstance(&#39;Project&#39;);<br>
&gt;<br>
&gt; This is vtlib API to administer the module fields/blocks etc...will not<br>
&gt; help in creating module records.<br>
&gt;<br>
&gt; Easy way to create module records (5.1.0 onwards), is using Server Side<br>
&gt; Webservice API<br>
</div>&lt;snip /&gt;<br>
<div class="im">&gt; $resultRecord = vtws_create( &#39;ModuleName&#39;, $parameters, $current_user );<br>
<br>
</div>Ahhaa. Cool, thanks Prasad.<br>
<br>
I thought there would be &quot;another way&quot;. I started looking at the Import<br>
module code but gave that up as a non-starter.<br>
<br>
Webservices looks like a fine idea. I just hacked a quick test together<br>
but that fails with a:<br>
<br>
&quot;Warning: require(user_privileges/user_privileges_.php): failed to open<br>
stream: No such file or directory in<br>
/var/www/vt520/include/utils/UserInfoUtil.php on line 4230&quot;<br>
<br>
error.<br>
<br>
But I think I need to build a simple WebServices browser first. I have<br>
no information about what fields of the Project module are exposed<br>
through the API (if any yet). And there seems to have been quite a few<br>
improvements made to it mentioned here 5.2.0:<br>
<a href="http://wiki.vtiger.com/index.php/vtiger520:Release_Notes" target="_blank">http://wiki.vtiger.com/index.php/vtiger520:Release_Notes</a><br>
<br>
Thanks again,<br>
<div><div></div><div class="h5"><br>
Al<br>
<br>
--<br>
The Open Learning Centre<br>
<a href="http://www.theopenlearningcentre.com" target="_blank">http://www.theopenlearningcentre.com</a><br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</div></div></blockquote></div><br>