[Vtigercrm-developers] vtws_retrieve(user_id) roleid is always empty.

Alan Lord alanslists at gmail.com
Wed Oct 6 14:44:26 GMT 2021


On 06/10/2021 15:11, Sukhdev Mohan wrote:
> 
> 
>     That doesn't help when using the Server or REST API.
> 
> Why so? Shouldn’t using models be the standard way?

Not if you are third party application on the same server, an extension 
module you want to put on the vtiger marketplace, or a remote application.

vtiger actively encourages the use of the Server API wherever possible:

https://community.vtiger.com/help/vtigercrm/developers/server-apis.html

"Server API enables data flow control for a module. It is recommended 
for use when a module needs to access of other module data / state. The 
Server API will take measure to apply the required Sharing / Profile 
access restriction as configured for the logged in user. Also triggers 
configured Event handlers (Workflow etc…) for operations like Save / 
Delete."


> Will never understand this UI type thing. It makes something easy but 
> adding new or editing the previous ones is a hellish task.

Sorry don't really follow that, what UI type thing? In general the 
Server APIs work well. They are very fast and make most simple 
operations easy and quick. But they do have quite a few limitations when 
you need to anything a bit more complex... Several of these I have 
reported on code.vtiger.com in the past and some of those even got fixed :-)

Al



More information about the vtigercrm-developers mailing list