Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Run Customer Store Procedure within Plugin in CRM 2013

$
0
0
We use to run the custom store procedure on CRM 4.0 Server within plugin to do some custom coding like below ...

string orgName =CrmContext.Current.OrganizationName;

           OrganizationConfiguration config =OrganizationConfiguration.GetByOrganizationName(orgName);

           DbConnectionStringBuilder connStr =newDbConnectionStringBuilder();

            connStr.ConnectionString = config.ConnectionString;

            connStr["Provider"] = null;

           this.ConnectionString = connStr.ConnectionString;

Now, if I use try to use similar approach into CRM 2013, I get below error:-



Does any one have any example/work around or suggestion on this??

Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>