<div dir="ltr">If I recall correctly, there might be a function called something like "getMeta" that you can call on the ModuleModel (or another model). <div>Check the code that is used to duplicate inventory records. I think you can find something similar there.</div><div><br></div><div>Again, my memory is pretty blurry on this, so I hope I'm not wrong. </div><div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 3, 2021 at 10:38 AM Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">There is no way to determine this information using vtws_describe either...<br>
<br>
For example if I describe the Quotes module, all I know about the <br>
quote_no field is this:<br>
<br>
> vtws_describe for Quotes<br>
> Array<br>
> (<br>
>     [label] => Quotes<br>
>     [name] => Quotes<br>
>     [createable] => 1<br>
>     [updateable] => 1<br>
>     [deleteable] => 1<br>
>     [retrieveable] => 1<br>
>     [fields] => Array<br>
>         (<br>
>             [0] => Array<br>
>                 (<br>
>                     [name] => quote_no<br>
>                     [label] => Quote No.<br>
>                     [mandatory] => <br>
>                     [type] => Array<br>
>                         (<br>
>                             [name] => string<br>
>                         )<br>
> <br>
>                     [isunique] => <br>
>                     [nullable] => 1<br>
>                     [editable] => <br>
>                     [default] => <br>
>                 )<br>
> <br>
>             [1] => Array<br>
>                 (<br>
>                     [name] => subject<br>
<br>
<br>
<br>
On 03/03/2021 15:49, Alan Lord wrote:<br>
> Does anyone know if there's an API anywhere to check if a particular <br>
> module has a UIType 4 field and what it is called so I can get the <br>
> record number (the vtiger_modentity_num generated stuff) of a particular <br>
> record?<br>
> <br>
> I couldn't see anything in the Vtiger_Record_Model and in the <br>
> Vtiger_Module_Model I could only find the method <br>
> hasSequenceNumberField() but this just tells me true or false; not what <br>
> the fieldname is...<br>
> <br>
> I can always write my own but wanted to check if such a thing existed <br>
> first.<br>
> <br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div>