Hello,
I am attempting to do something that I thought was rather simple but is not working as expected. I would like to display a field value of a custom entity record on the web page. I am using the following in my web template:
{% assign application = entities['new_appliction'][request.params.id] %} {% if application %} <div style="background:white; padding-left:10px;"><h3><strong>{{application.name}}</strong></h3></div> {% endif %}
Seems straightforward to me, however nothing is displayed.
I've added {{ request.params.id }} to validate that the id of the record is being returned. I then used that ID to validate that the record exists in Dynamics. I've also confirmed the name of the entity and the name of the field.
So it appears that the application entity is not being created therefore the if logic is failing.
Interestingly, if I use the same code (modified for entity), I am able to return and display values from out of the box entities such as Account. For example:
{% assign account = entities['account'][request.params.id] %} {% if account.id %} <div style="background:white; padding-left:10px;"><h3><strong>{{account.name}}</strong></h3></div> {% endif %}
I assume this works on custom entities?? Any insight that you can provide is appreciated
Tom
*This post is locked for comments