<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Why doesn't Webservices use the same IDs as the tabids?</span></blockquote>

<div><font color="#222222" face="arial, sans-serif"><br>
</font></div><div><font color="#222222" face="arial, sans-serif">Webservices uniquely identifies the record with WSMODULEIDxCRMID</font></div><div><font color="#222222" face="arial, sans-serif">Without which you will need pass on MODULENAME and CRMID for every</font></div>


<div><font color="#222222" face="arial, sans-serif">operation (as done in the UI).</font></div><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">In either case, running the ID through:</font></div>


<div><span style="color:rgb(34,34,34)"><b><font face="courier new, monospace">array_pop(explode('x', $THEID));</font></b></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif">would get you the CRMID.</span></div>


<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Regards,<br>Prasad</font></div><div><font color="#222222" face="arial, sans-serif"><br clear="all">

</font><div>
<span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="http://blog.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a href="http://forums.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a href="http://vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>



<br><br><div class="gmail_quote">On Wed, Jul 31, 2013 at 7:09 PM, Alan Lord (News) <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>On 31/07/13 14:26, Adam Heinz wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
*scratches head*<br>
<br>
That $entity isn't a VTEntityData?<br>
</blockquote>
<br>
<br></div>
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"<br>
<br>
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?<br>
<br>
Cheers<div><div><br>
<br>
Al<br>
<br>
<br>
<br>
-- <br>
Libertus Solutions<br>
<a href="http://www.libertus.co.uk" target="_blank">http://www.libertus.co.uk</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</div></div></blockquote></div><br></div>