Both workflows and plug-ins can attach to exactly the same events. Well, plug-ins have available a couple of more events but essentially both work on top of the same event model.Remember also that workflows always run asynchronous and hence, the Asynchronous Processing Service must be running on the server in order to run. Workflows [...]
Posts Tagged ‘Plug-In’
Plug-ins vs. Workflows in Microsoft Dynamics CRM
Posted: October 29, 2010 in Microsoft Dynamics CRMTags: Plug-In, Plug-Ins, Workflow
7
Using FilteredView to retrieve data in Plug-In or Callout
Posted: December 12, 2008 in Microsoft .NET, Microsoft Dynamics CRMTags: FiltededView, Plug-In, Plug-Ins, Retrieve Data
To retrieve data from CRM Database( FilteredView)….. SqlConnection connection = new SqlConnection(“DataSource=<dsName>;Initial Catalog=<databaseName> ;Integrated Security=SSPI;”); string sqlQuery = @” select max(new_uniqueid) from FilteredView” ; SqlCommand cmd = new SqlCommand(sqlQuery, connection); connection.Open(); /// Write Logic here connection.Close(); But this code wasn’t returning any results .It was because callout/plugin run under the context of [...]

