dynamics-crm-2011

Dynamics CRM error with plugin tutorial

淺唱寂寞╮ 提交于 2020-01-03 05:54:08
问题 I am trying to write my first plugin using this tutorial: http://msdn.microsoft.com/en-us/library/gg695782.aspx However, when registered I get this error when saving a contact. Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unexpected exception from plug-in (Execute): Plugin: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Xrm.Client, Version=5.0.9689.2166, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the

How to force execution to stop till asynchronous function is fully executed?

空扰寡人 提交于 2020-01-03 05:22:10
问题 I'm creating a silverlight application for CRM as follow: 1- A usercontrol which is a form is filled with data retrieved from the CRM using async/await 2- A Print button that creates an instance of that usercontrol and prints it I have a problem in the sequence of execution that causes the Print button to print the usercontrol with no data, meaning, it's executed before the async method finishes. My code is as follows: User control: Public partial class ManagerContact : UserControl //

CRM 2011 generated code using ICodeWriterFilterService fails to build

喜欢而已 提交于 2020-01-02 07:08:20
问题 Using the sample code at http://erikpool.blogspot.com/2011/03/filtering-generated-entities-with.html I have altered this so that GenerateEntity and GenerateOptionSet to have the code: return optionSetMetadata.Name.ToLowerInvariant().StartsWith("myprefix"); This generates the types including some enumerations for the optionsets. The actual implementation of the optionset in the entity doesn't use this however, but I get the following: [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("myprefix

How come when debugging javascript in CRM 2011 for a form opened up from the ribbon, script blocks are created?

家住魔仙堡 提交于 2020-01-02 05:00:09
问题 Setup I'm adding an appointment to a custom entity in an on site CRM 2011. I click the "New Activity" button on the Ribbon, select Appointment, then Ok. On the new window that opens, I F12 to open the IE debugger, and select the Script tab, set a break point both in my onLoad function, and in the crmForm_window_onload_handler of the FormScript.js.aspx file, and click the start debugging button. I then reload the appointment window. Issue The break point in crmForm_window_onload_handler hits,

Assembly must be registered in isolation error

我们两清 提交于 2020-01-02 04:34:10
问题 I'm trying to load a custom workflow activity onto a crm server. I loaded the project onto the server and have been using the CRM Plug-in Registration Tool. The server is CRM2011 and thus supports .NET 4.0 activities. However, when I press the "Register" button (After the assembly has successfully loaded onto the Tool) the following error occurs: `Unhandled Exception: System.ServiceModel.FaultException'1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture

Microsoft Dynamics CRM Online with a Windows Azure Hosted Webpage + IFrame + X-Frame-Options

亡梦爱人 提交于 2020-01-01 10:27:47
问题 I am trying to use Microsoft Dynamics CRM Online where Windows Azure hosts a custom webpage that is displayed in an IFRAME of the Microsoft Dynamics CRM web application. I have read http://msdn.microsoft.com/en-us/library/gg509061 (Microsoft Dynamics CRM Online with a Windows Azure Hosted Webpage) and also followed the instructions on http://social.technet.microsoft.com/wiki/contents/articles/2590.aspx (Secure Windows Azure Web Role ASP.NET Web Application Using Access Control Service v2.0) I

CRM 2011 OrganizationServiceProxy vs OrganizationServiceContext

杀马特。学长 韩版系。学妹 提交于 2020-01-01 04:08:08
问题 I am reading through the MS CRM 2011 SDK docs and see two ways for accessing entities: OrganizationServiceContext or OrganizationServiceProxy. Why would I choose one method over another? The SDK isn't really clear on design considerations on this point. 回答1: IOrganizationService is your connection to the CRM system. In Microsoft Dynamics CRM 2011, the primary Web service accessing data and metadata for your organization is the IOrganizationService Web service. The class

How to configure CRM Ribbon xml to display a ribbon button for an Entity only when it is being viewed in the context of a particular parent entity

最后都变了- 提交于 2019-12-31 02:29:11
问题 What I'm Trying To Do I've got a CRM entity (LocationSettings) that is displayed as an associated Sub Grid on another entity (Location). I want to add a button to the subgrid ribbon for the LocationSettings entity that will basically delete all LocationSettings for the Location the user is currently viewing. Where I'm At I'm using the Visual Ribbon Editor for CRM 2011, and I have been able to successfully create the button, and add it to the ribbon, but when I try to add a display rule to

Using QueryByAttribute cannot retrieve null values

泄露秘密 提交于 2019-12-30 10:19:31
问题 I am new to CRM Development. I would like to update the custom field values in addtion to its existing values in the CRM 2011 from my C# application. If the field has some values then it is working fine, but if it null then i am receiving "The given key was not present in the dictionary." error. The code below is what i am trying to achieve. IOrganizationService service = (IOrganizationService)serviceProxy; QueryByAttribute querybyattribute = new QueryByAttribute("salesorder");

TimeZoneCode to TimeZoneInfo

雨燕双飞 提交于 2019-12-30 07:43:29
问题 In our MS dynamics CRM project we created a mass-user upload batch. The batch reads from an excel file and does a mass upload of the users. One of the things this batch needs to set is the timezonecode. In the excel file the timezone will be written as eg "UTC+1" The code used by CRM seems to be the timezonecode SQL-server is using as can be found here. What is the cleanest way of mapping these? My ideas so far: Hardcode a conversion store Fetch the codes from CRM somehow Fetch the codes from