<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">@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  :-)<br>
      <br>
      The big question for me is the one Alan asked:  why isn't the
      WSMODULEID = TABID  ??<br>
      <br>
      <br>
      Joe<br>
      TSolucio<br>
      <br>
      <br>
      El 01/08/13 15:21, Adam Heinz escribió:<br>
    </div>
    <blockquote
cite="mid:CAKBdvM-BBKwz0CrASbBFHSKV9G+Yi_CduJ0VtVJ80M_iWS4xAQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">I disagree with that assessment.
         VTEntityData::fromEntityId doesn't require the module and
        instantiates whatever crmid you pass it.</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Jul 31, 2013 at 11:47 PM,
          Prasad <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:prasad@vtiger.com" target="_blank">prasad@vtiger.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div class="im">
              <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>
            <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 moz-do-not-send="true"
                    href="http://twitter.com/vtigercrm"
                    style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a
                    moz-do-not-send="true"
                    href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall"
                    style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a
                    moz-do-not-send="true"
                    href="http://blog.vtiger.com/"
                    style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a
                    moz-do-not-send="true"
                    href="http://wiki.vtiger.com/index.php/Main_Page"
                    style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a
                    moz-do-not-send="true"
                    href="http://forums.vtiger.com/"
                    style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a
                    moz-do-not-send="true" href="http://vtiger.com/"
                    style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>
              <div>
                <div class="h5">
                  <br>
                  <br>
                  <div class="gmail_quote">On Wed, Jul 31, 2013 at 7:09
                    PM, Alan Lord (News) <span dir="ltr"><<a
                        moz-do-not-send="true"
                        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 moz-do-not-send="true"
                            href="http://www.libertus.co.uk"
                            target="_blank">http://www.libertus.co.uk</a><br>
                          <br>
                          _______________________________________________<br>
                          <a moz-do-not-send="true"
                            href="http://www.vtiger.com/"
                            target="_blank">http://www.vtiger.com/</a><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            <a moz-do-not-send="true" href="http://www.vtiger.com/"
              target="_blank">http://www.vtiger.com/</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
    </blockquote>
    <br>
  </body>
</html>