Monthly Archives: October 2011

Get Opportunity Task Information using FetechXML

private EntityCollection GetOpportunityTaskCollections(IOrganizationService service, Guid _opportunityid) { string fxml = @"<fetch mapping=’logical’ version=’1.0′>" + "<entity name=’task’>" + "<attribute name=’activityid’ />" + "<attribute name=’description’ />" + "<attribute name=’ownerid’ />" + "<attribute name=’scheduledend’ />" + "<attribute name=’statecode’ />" + "<attribute name=’subject’ />" … Continue reading

Posted in MS Dynamic CRM 2011 | 11 Comments

Process Classes, Attributes, and Microsoft Dynamics CRM Types(Microsoft CRM 2011 SDK)

Process Classes The process classes are available in the Microsoft.Xrm.Sdk.Workflow namespace (Microsoft.Xrm.Sdk.Workflow.dll). You can use these classes to create custom activities in Windows Workflow Foundation, and then use the activities in the Processes area of Microsoft Dynamics CRM, or in … Continue reading

Posted in MS Dynamic CRM 2011 | 9 Comments

Get Picklist ,Status , State Lable Value

Get OptionSet Lable Value function call :  GetOptionsSetTextOnValue(service, Opportunity.EntityLogicalName, “opportunityratingcode”, ((OptionSetValue)_entityOpp.Attributes["opportunityratingcode"]).Value); private string GetOptionsSetTextOnValue(IOrganizationService service, string entityName, string attributeName, int selectedValue) { RetrieveAttributeRequest retrieveAttributeRequest = new RetrieveAttributeRequest { EntityLogicalName = entityName, LogicalName = attributeName, RetrieveAsIfPublished = true }; // Execute … Continue reading

Posted in MS Dynamic CRM 2011 | 9 Comments

Use LINQ to Construct a Query

The .NET Language-Integrated Query (LINQ) query provider in MicrosoftDynamics CRM 2011 and Microsoft Dynamics CRM Online uses standard LINQ syntax. The first step in creating a LINQ query is to identify the relevant entity types and the relationships between them. … Continue reading

Posted in MS Dynamic CRM 2011 | 14 Comments