Check out these wonderful tools to lear Linq and oData Query
Bye.
Check out these wonderful tools to lear Linq and oData Query
Bye.
Hi,
While searching for how to use Organization.svc within a silverlight application, i found these 2 helpful posts
http://msdn.microsoft.com/en-us/library/gg594452.aspx#Y1145
http://erikpool.blogspot.com/2010_12_01_archive.html
The other easier option that i can think of is creating a custom wcf service that uses Organization.svc and using this custom wcf service in the silverlight application.
Download the solution here
http://www.box.net/shared/pgditixq1o
Bye.
After restoring the database to the server, I got the following error while importing the organization using the Deployment Manager

The build version of the database that I was importing was different than the build version of the database of the organization that I already had there.
http://support.microsoft.com/kb/946594 ( to find the build version of the database)
The one we were importing had higher build version.
Than we installed the update for Microsoft Dynamics CRM 2011 Release Candidate
http://support.microsoft.com/kb/2461082
Restarted the server and was able to import the organization successfully.
Hope it helps.
To get the value for OptionSet we can use the following function
private
string GetOptionsSetTextOnValue(IOrganizationService service, string entityName, string attributeName, int selectedValue) {
RetrieveAttributeRequest retrieveAttributeRequest = new
RetrieveAttributeRequest {
EntityLogicalName = entityName,
LogicalName = attributeName,
RetrieveAsIfPublished = true
};
// Execute the request.
RetrieveAttributeResponse retrieveAttributeResponse =(RetrieveAttributeResponse) service.Execute(retrieveAttributeRequest);
// Access the retrieved attribute.
Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata retrievedPicklistAttributeMetadata =(Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata)
retrieveAttributeResponse.AttributeMetadata;// Get the current options list for the retrieved attribute.
OptionMetadata[] optionList =retrievedPicklistAttributeMetadata.OptionSet.Options.ToArray();
string selectedOptionLabel = string.Empty;
foreach (OptionMetadata oMD in optionList) {
if (oMD.Value == selectedValue){selectedOptionLabel = oMD.Label.UserLocalizedLabel.Label;
}
}
return selectedOptionLabel;
}
http://www.codeproject.com/Tips/553178/Get-the-OptionsetValue-and-OptionsetText-for-Dynam
Hope it helps !
Add Service Reference to the Organization WCF service in the application.
URL àhttp://servername:port/OrganizationName/xrmServices/2011/organization.svc
Use the following code to perform various functions using OrganizationServiceClient
AttributeCollection myAttColl = new AttributeCollection();
myAttColl.Add(new KeyValuePair<string, object>(“lastname”, “Rana”));
myContact.Attributes = myAttColl;
ClientCredentials credentials = new ClientCredentials();
Uri organizationUri = new Uri(“http://servername:port/organizationname/xrmServices/2011/organization.svc”);
try{
OrganizationServiceClient orgClient = new OrganizationServiceClient();
orgClient.Create(myContact);
}
catch (Exception ex){
}
Hope it helps.
Hi I was just wondering how we can use CRM Shortcut radio button option that appears in Insert Hyperlink dialog box of Dialogs in CRM 2011.

After searching for it, I found the following post which says that we should ignore that button as it won’t be there in the final release.
http://social.microsoft.com/Forums/en/crm2011beta/thread/d012ae9e-4bc5-4bdb-ae6f-c58da16882dc
Hope it helps !