In Dynamics CRM I have a “meeting” entity and a “meeting invite” entity linked to the Contact entity.
I have a Portal Web Page setup with an EntityList that shows a listing of all the Meeting Invites based on the current logged in user.
I have configured a portal webpage with a corresponding entity form that when the portal user clicks on a “Meeting Invite” record in the entity list, it will open a page where they can view the meeting invite details. (webpage has a corresponding EntityForm record set based on Meeting Invite CRM form)
The page to view the invite details is based on the following Liquid WebTemplate:
<div class="container">
<div class="row">
<div class="col-md-12">
{% if page.adx_copy %}
{% include 'page_copy' %}
{% endif %}
<div class="form">
{% entityform id:page.adx_entityform.id %}
</div>
</div>
</div>
</div>
The Meeting Invite EntityForm will load no problem.
However, I actually want to configure the portal so that when the end user clicks on their “Meeting Invite” record on the EntityList, it will instead show a page with the “Meeting Info”.
If I swap out the Entityform lookup on the webpage to an Entityform configured to show the “Meeting” record instead, my code will display a “can’t find a record” because it is trying to display the EntityForm using the Meeting Invite GUID (from the request.params.id). This is expected behaviour.
I know you can’t change the GUID passed from the entity list, it can only send the GUID of the records in the entitylist as a parameter.
Is there a way to override the *record id* that the EntityForm uses in a Liquid web template?
Here is my code so far:
{% assign meetingattendance = entities['new_meetingattendance'][request.params.id] %}
{% assign meetingid = meetingattendance.new_meeting.id %}
{%comment}
Need to have entityform use "meetingid" and not the id passed to the web page from the entity list...
{%endcomment}
<div class="container">
<div class="row">
<div class="col-md-12">
{% if page.adx_copy %}
{% include 'page_copy' %}
{% endif %}
<div class="form">
{% entityform id:page.adx_entityform.id %}
</div>
</div>
</div>
</div>
And ADXSTUDIO/Liquid experts out there that can answer or have a solution?
*This post is locked for comments