Dynamics CRM 2011 Portal Development – SavedQueryDataSource

Dynamics CRM 2011 Portal Development

SavedQueryDataSource data source control connects to Dynamics CRM and retrieve  savedquery entity, convert its fetchxml to QueryExpression, retrieve entities by using IOrganizationService.RetrieveMultiple(QueryExpression) and make these entities available for other controls to bind to, without requiring code. It only supports retrieving data.

It only works with savedquery NOT userquery. Savedquery is available to the entire organization and created using customization; userquery belongs to individual users and created using advanced find user interface.

Example:


<crm:SavedQueryDataSource ID="SavedQueryDataSource1" runat="server" SavedQueryName="Active WebPages">
 </crm:SavedQueryDataSource>
 <asp:GridView ID="GridView1" runat="server" DataSourceID="SavedQueryDataSource1">
 </asp:GridView>

Results:

More Information:

Use Saved Queries in a Portal

Walkthrough: Build a Web Application That Connects to Microsoft Dynamics CRM 2011 Using Developer Extensions

Advertisements

One comment on “Dynamics CRM 2011 Portal Development – SavedQueryDataSource

  1. Pingback: Dynamics CRM 2011 Portal Development | Zhongchen Zhou's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s