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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can I get the results from the view?

(0) ShareShare
ReportReport
Posted on by 225

Hello!

I need to output the entities from the selected view of a entity in JavaScript. Is there a way to get the results, and maybe an event that fires when the view is changed?

I'm making a chart "by hand" here and need the context of the selected view.

*This post is locked for comments

I have the same question (0)
  • _Lars_ Profile Picture
    225 on at
    RE: How can I get the results from the view?

    Hello Alex!

    I might not have explained the problem good enough. In a view, you can pull charts out from the right hand side. I've replaced a chart with my own based using javascript Flot chart. But I'm missing data context as I don't know how to fetch the view results.

  • Suggested answer
    ashlega Profile Picture
    34,477 on at
    RE: How can I get the results from the view?

    Hi,

     you might use Ribbon Workbench to add a new ribbon button for that particular entity "grids".

     There, you might create a customrule and pass selectedcontrol crm parameter to the javascript function:

     msdn.microsoft.com/.../gg309332.aspx

     And, then, you can probably use getViewSelector().getCurrentView() to get to the view

     msdn.microsoft.com/.../dn932126.aspx

     Once you have the view id, you can use Web API to re-query all the records in that view and to do whatever you want to do with them

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans