I am trying to retrieve the entity records using fetch xml/ liquid within a web template. This works fine accept that for one decimal field, I am getting the below error.
Liquid error: Object of type 'System.Decimal' cannot be converted to type 'System.String'.
How do we convert decimal objects to string in liquid?
I am referring this blog post: dyn365apps.com/.../dynamics-365-portals-liquid-templates-part-3-retrieve-data-using-fetchxml
Here is my current liquid code. new_amount is the decimal field
===
{% for result in my_query.results.entities %}
<div name="main-content" style="margin-left: 300px; max-width: 800px;">
<h1> {{ result.new_name | escape }} </h1>
<h2> {{ result.new_amount | escape }} </h2>
</div>
{% endfor %}
=========