[Vtigercrm-developers] Silly Question? Delete entity in Workflow Funtion?

Prasad prasad at vtiger.com
Thu Aug 1 03:47:36 UTC 2013


>
> Why doesn't Webservices use the same IDs as the tabids?


Webservices uniquely identifies the record with WSMODULEIDxCRMID
Without which you will need pass on MODULENAME and CRMID for every
operation (as done in the UI).

In either case, running the ID through:
*array_pop(explode('x', $THEID));*
would get you the CRMID.

Regards,
Prasad

 *Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I*
Facebook<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall>
 *I* Blog <http://blog.vtiger.com/>* I*
Wiki<http://wiki.vtiger.com/index.php/Main_Page>
 *I *Forums  <http://forums.vtiger.com/>*I* Website <http://vtiger.com/>


On Wed, Jul 31, 2013 at 7:09 PM, Alan Lord (News) <alanslists at gmail.com>wrote:

> On 31/07/13 14:26, Adam Heinz wrote:
>
>> *scratches head*
>>
>> That $entity isn't a VTEntityData?
>>
>
>
> Yes, but if you just print_r($entity) from within a Workflow function
> you'll see the entity ID and any UI Type 10 fields also have the format
> "tabid"x"entityid"
>
> But in this case the tabid is the proper tabid, not the WS id.  Which
> reminds me. WTF do they have to be different? Why doesn't Webservices use
> the same IDs as the tabids?
>
> Cheers
>
>
> Al
>
>
>
> --
> Libertus Solutions
> http://www.libertus.co.uk
>
> ______________________________**_________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130801/9f50e95b/attachment.html>


More information about the vtigercrm-developers mailing list