[Vtigercrm-developers] Workflow Custom Functions

Prasad prasad at vtiger.com
Tue Aug 24 12:05:26 PDT 2010


Hi Alan,

"Warning: require(user_privileges/user_privileges_.php): failed to open
> stream: No such file or directory in


You need to pass the user instance to vtws_create API.Make sure
$current_user is declared as global and is intitlazied.
$current_user will be set in the entry point index.php (please do not set it
else-where)

Regards,
Prasad

On Wed, Aug 25, 2010 at 12:19 AM, Alan Lord (News) <alanslists at gmail.com>wrote:

> On 24/08/10 19:10, Prasad wrote:
> > Hi Alan,
> >
> >     $newProject = Project::getInstance('Project');
> >
> > This is vtlib API to administer the module fields/blocks etc...will not
> > help in creating module records.
> >
> > Easy way to create module records (5.1.0 onwards), is using Server Side
> > Webservice API
> <snip />
> > $resultRecord = vtws_create( 'ModuleName', $parameters, $current_user );
>
> Ahhaa. Cool, thanks Prasad.
>
> I thought there would be "another way". I started looking at the Import
> module code but gave that up as a non-starter.
>
> Webservices looks like a fine idea. I just hacked a quick test together
> but that fails with a:
>
> "Warning: require(user_privileges/user_privileges_.php): failed to open
> stream: No such file or directory in
> /var/www/vt520/include/utils/UserInfoUtil.php on line 4230"
>
> error.
>
> But I think I need to build a simple WebServices browser first. I have
> no information about what fields of the Project module are exposed
> through the API (if any yet). And there seems to have been quite a few
> improvements made to it mentioned here 5.2.0:
> http://wiki.vtiger.com/index.php/vtiger520:Release_Notes
>
> Thanks again,
>
> Al
>
> --
> The Open Learning Centre
> http://www.theopenlearningcentre.com
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20100825/badcb3e9/attachment-0002.html 


More information about the vtigercrm-developers mailing list