Author Archives: admin
How to retrieve static marketing list member in Dynamics CRM 2011
To retrieve static marketing list member in Dynamics CRM 2011 follow below steps: Use Link Entities to get relationship entity details Passing list Guid as object and it will return static marketing list member private EntityCollection RetrieveMarketingListMembers(IOrganizationService service, object strList) … Continue reading
How to debug offline plugin in Dynamics CRM 2011 for Outlook Offline
Following are the steps to start debug a offline plugin in Dynamics CRM 2011 for outlook offline mode: Build the solution on your machine Register the plugin on the server Register the step deployment as server and offline Synchronize the … Continue reading
How to retrieve campaign and target product in Dynamics CRM 2011
To retrieve campaign and target products in Dynamics CRM 2011 follow below steps: Use Link Entities to get N:N relationship entity details Passing Campaign Activity Guid array and it will return campaign details and target products associated with campaign private … Continue reading
How to create static marketing list and associated marketing list member in Dynamics CRM 2011
To create static marketing list and associated marketing list member in Dynamics CRM 2011 below are the steps: Create the array of contacts/accounts/leads. Set type attribute as false to create static list. Make sure createdfromcode attribute is set as contact/account/lead … Continue reading
How to use FetchXML to retrieve entities in Dynamics CRM 2011.
FetchXML is query language based on a schema that describes the capabilities of the language. The FetchXML language supports similar query capabilities as query expression. It is used primarily as a serialized form of query expression, used to save a … Continue reading
How to calculate current age from Date of Birth using Javascript in Dynamics CRM 2011
To calculate current age from date of birth using javascript in dynamics crm 2011 follow below: Checking month difference if it is 0 simply subtract the birth year from current year. If it is negative value simply subtract the birth … Continue reading
How to implement Window Authentication Functionality to a C# Desktop Application
1) Get currently logged in user details: We can achieve this by using the WindowsIdentity class of System.Security.Principal namespace. This class provides a static method, getCurrent(), which return a object of WindowsIdentity. 2) Validate windows credentials provided by user:(Ask User … Continue reading
Writing to an ms access database using C# Window Application
Please try below code to write in MS ACCESS databse using C# Window Application: System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(@”Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\amar\Documents\Database1.accdb”); conn.Open(); using (System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand()) { cmd.Connection = conn; cmd.CommandText = “Insert Into Employee (UserName, fname, sname, email) … Continue reading
How to get date value form one form to another form using C# in Window Application
Create a constructor on form2 with input parameter as date time. And when you create object of form2 in form1 just pass the date value using C# in window application. form1 coding: DateTime objdate = dateTimePicker1.Value; form2 objform2= new form2(objdate) … Continue reading