<div dir="ltr">Hi Alan,<br><div><br></div><div>Thanks! for the Note.</div><div><br></div><div>Yes! Your right retrieve and retrieve_related web-service api's are fetching the Raw data from DB without user dependent formatting. Let's review this as an enhancement and review. We also made note on documenting the DataTransform api.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 27, 2020 at 6:11 PM 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">What is the point of the Server API retrieve type functions when they do <br>
not convert the raw data from a record(s) into the current_user's <br>
expected formats?<br>
<br>
When I pull data using these methods, dates are provided in ISO 8601 <br>
format, currency fields are just raw floats with no consideration of the <br>
user's Currency Decimal setting and there are no currency symbols.<br>
<br>
Having to use this API for (vtiger Marketplace) modules which display <br>
data in the vtiger UI seems pointless as the Record Model provides all <br>
the necessary APIs already... After retrieving the raw data via <br>
vtws_retrieve/retrieve_related I then have to:<br>
<br>
1. Determine the type of the field to see if it needs formatting (not <br>
obvious as we only have: fieldname => value)<br>
2. Load an entity/Record Model/Field Model to get the appropriately <br>
formatted data<br>
<br>
I do wonder if we could use the DataTransform class for this, but there <br>
is no documentation and it is hard to work out what is required for this <br>
work properly.<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>