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

Adam Heinz amh at metricwise.net
Thu Aug 1 13:21:41 UTC 2013


I disagree with that assessment.  VTEntityData::fromEntityId doesn't
require the module and instantiates whatever crmid you pass it.


On Wed, Jul 31, 2013 at 11:47 PM, Prasad <prasad at vtiger.com> wrote:

> 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/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130801/c6a5fea5/attachment.html>


More information about the vtigercrm-developers mailing list