Here's an ASP.NET data source/grid in a sample application (the WebAppWalkthrough application provided with the SDK)
<crm:SavedQueryDataSource ID="EligiblePatients" SavedQueryName="Patients View" runat="server" />
<asp:GridView id="EligiblePatientsGrid" DataSourceID="EligiblePatients" runat="server" />
So this pulls contacts from the saved query called Patients View
in our CRM instance.
I installed the Xrm Portal plugins and created a Web Notification URL as shown in this procedure, to trigger an invalidation of the cache when entities in CRM are created/deleted/updated, but no go.
For the updates to come through, I need to shutdown the webdev process that's used to run applications in Visual Studio and then the changes are visible.
It is real weird though. If I start debugging my application (assuming the local application pool is starting for the first time) I do see the live data from CRM. Then if I changed something in CRM and refresh my webpage, I do see the changes.
It's when I do the same test a 2nd, 3rd, 4th, etc. time, then the changes are never shown on the webpage, no matter what happens in CRM, that is unless I kill the application pool.
Any ideas ?