Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

{Portal} Error while accessing fields using liquid

$
0
0

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 %}
=========

Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>