We are using Notes entity view to display in Portal. How to show Regarding(objectid) in the view.
*This post is locked for comments
At least you can use liquid templates to render entity list in way you need.
Below some example of Task entity and regarding fields:
{% fetchxml mytasks %} <fetch count="10" returntotalrecordcount="true" > <entity name="task" > <attribute name="modifiedon" /> <attribute name="scheduledend" /> <attribute name="subject" /> <attribute name="regardingobjectid" /> <attribute name="activityid" /> <order attribute="modifiedon" descending="true" /> </entity> </fetch> {% endfetchxml %} <div class="panel-heading"> <span class="panel-title"><a href="/mytasks"><span class="label label-primary">My Tasks</span> <span class="badge">{{mytasks.results.total_record_count}}</span></a></span></div> {% if mytasks.results.entities.size > 0 %} <table class="table table-condensed table-striped"> <thead><tr><th>Subject</th><th>Date Due</th><th>Regarding</th></tr></thead> <tbody> {% for item in mytasks.results.entities %} <tr> <td> <a href="mytasks/mytasks-edit/?id={{ item.activityid }}">{{ item.subject }}</a></td> <td> {{ item.scheduledend }} </td> <td> {% case item.regardingobjectid.logicalname %} {% when 'incident' %} <a href="/support/edit-case/?id={{ item.regardingobjectid.id }}"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> {{ item.regardingobjectid.name }}</a></td> {% when 'contact' %} <a href="/support/edit-contact/?id={{ item.regardingobjectid.id }}"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> {{ item.regardingobjectid.name }}</a></td> {% when 'account' %} <a href="/customers/customer/?id={{ item.regardingobjectid.id }}"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> {{ item.regardingobjectid.name }}</a></td> {% else %} {{ item.regardingobjectid.name }} {% endcase %} </td> </tr> {% endfor -%} </tbody> </table> {% else %} <div class="panel-body">There are no tasks</div> {% endif %}
We can't add the object id into the notes view
Are your note records always attached to the same entity ? you could add a field for any other entity directly related to the notes entity (this might make sense if it is always the same entity)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156