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

Joe Bordes joe at tsolucio.com
Thu Aug 1 13:36:02 UTC 2013


@Adam, I think he is saying that IF they hadn't created the extended 
REST id they would have ended up passing the module name in all the 
calls. So, now they are passing it in all the calls hidden inside the 
extended id  :-)

The big question for me is the one Alan asked:  why isn't the WSMODULEID 
= TABID  ??


Joe
TSolucio


El 01/08/13 15:21, Adam Heinz escribió:
> 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 
> <mailto: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 <mailto: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/
>
>
>
>
> _______________________________________________
> http://www.vtiger.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130801/861aff10/attachment.html>


More information about the vtigercrm-developers mailing list