web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to pass Var type variable to liquid fetch in CRM portals

(0) ShareShare
ReportReport
Posted on by 87

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

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans