Monthly Archives: September 2011

Change Opportunity Status

Won Opportunity public     void CloseOpportunityasWon(string _opportunityid) {   ServerConnection serverConnect = newServerConnection();   ServerConnection.Configuration config = serverConnect.GetServerConfiguration();   OrganizationServiceProxy _serviceProxy;   var creds = newClientCredentials();   using (_serviceProxy = newOrganizationServiceProxy(config.OrganizationUri, config.HomeRealmUri, config.Credentials, config.DeviceCredentials)) {   // This statement … Continue reading

Posted in MS Dynamic CRM 2011 | 8 Comments

Delete Entity Record

public     void DeleteContactInformation(string _contactid) {   ServerConnection serverConnect = newServerConnection();   ServerConnection.Configuration config = serverConnect.GetServerConfiguration();   OrganizationServiceProxy _serviceProxy;   var creds = newClientCredentials();   using (_serviceProxy = newOrganizationServiceProxy(config.OrganizationUri, config.HomeRealmUri, config.Credentials, config.DeviceCredentials)) {   // This statement is required … Continue reading

Posted in MS Dynamic CRM 2011 | 6 Comments

add Contact to Marketlist

public     void AddContacttoMarketlist(string _contactid, string _marketlistid) {   ServerConnection serverConnect = newServerConnection();   ServerConnection.Configuration config = serverConnect.GetServerConfiguration();   OrganizationServiceProxy _serviceProxy;   var creds = newClientCredentials();   using (_serviceProxy = newOrganizationServiceProxy(config.OrganizationUri, config.HomeRealmUri, config.Credentials, config.DeviceCredentials)) {   // This statement … Continue reading

Posted in MS Dynamic CRM 2011 | 11 Comments

Update Activity Assocative View

  function         filterActivityGrid() {       var navActivity = document.getElementById(‘navActivities’);       if (navActivity != null && navActivity != undefined) {   navActivity.onclick =     function () {   loadArea(     ‘areaActivities’); … Continue reading

Posted in MS Dynamic CRM 2011 | 11 Comments

Process Quotes, Sales Orders and Invoices

using System; using System.ServiceModel; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; using Microsoft.Xrm.Sdk.Client; using Microsoft.Xrm.Sdk.Messages; using Microsoft.Crm.Sdk.Messages; namespace Microsoft.Crm.Sdk.Samples { //Demonstrates how to convert a quote to a sales order, and a sales order //to an invoice. Also demonstrates locking/unlocking prices on both … Continue reading

Posted in MS Dynamic CRM 2011 | 6 Comments

Run ondemand workflow from code

http://www.mscrmconsultant.com/2012/06/run-ondemand-workflow-from-c-code-in.html

Posted in MS Dynamic CRM 2011 | 10 Comments