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 365 | Integration, Dataverse...
Answered

Filter and Return a subset of records in a sub grid other than using JS

(0) ShareShare
ReportReport
Posted on by 702

Ok there is a requirement to show all other opportunities on the Opportunity form which have the same Account as the current one.

I know in CRM2013 this can be done using form JS to rewrite the view in side the sub grid on the fly with any desired filters...

I also know that I can achieve this easily with an embedded canvas app on the form.

Other than the above, I just wonder if in the latest version v9 and above - there is another way to do this.

Initially I thought the "Lookup" configuration on the editable sub grid control might be my answer, but after had a look of that, it isn't.

It is used to control any lookup field that is part of the sub grid view as suppose to filter on the given view.

Can someone confirm this please?

Cheers

Xun

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Xun,

    You can set the filter on the fly using JavaScript - dotnetdust.blogspot.com/.../setting-sub-grid-filterxml-in-unified.html

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello ,

    You can  achieve this using quick view form. Create a quick view form in Account entity. Include Opportunities subgrid inside quick view form. Once you created quick view form come back to Opportunities form and include the Account quick view form in the Opportunities form.

    pastedimage1599406806846v2.png

  • shennu Profile Picture
    702 on at

    thanks Andrew. I must say that I didn't know the js wouldn't work with the unified interface... and thanks for sharing your js solution on this matter anyways.

    cheers

  • shennu Profile Picture
    702 on at

    I like this simply solution. many thanks

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 51 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans