Hi All,
Is there a way to pass the var type variable into liquid fetch xml in dynamics crm portals? I am getting contactid into a variable and based on the contact Id I need to query some data using fetchXML. I could not achieve it with Odata feed as well, because the relationship is N:N.
Actual requirement is, we have N:N relationship on contact to have sub grid on contact entity. Now I need to query the contacts which are associated to another contact. That means I need to get the subgrid records by passing the contact id
I have to achieve this functionality in CRM portal entity forms. Kindly help me by providing your thoughts. Thanks!!
*This post is locked for comments
Hi,
Yes you can simply pass your variable to fetchxml like following
//get parameter
{% assign param=request.params['parametername'] %}
//part of fetchXML query in linq
<condition attribute='mesh_url' operator='eq' value='{{param}}' />
Let me know if did not understand your requirement correctly
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156