dynamics-crm-2011

Random JavaScript Errors in CRM 2011 Outlook Client

做~自己de王妃 提交于 2019-12-22 08:50:10
问题 We are receiving some JavaScript errors that are happening in the Outlook Client only. They are sporadic, and difficult to reproduce. They tend to come from the Order form. Examples include: "Can't execute code from a freed script..." from the Address Lookup on the Order "this.$B_1' is null or not an object" from "_static/_controls/ribbon/ribbon.js" (trying to run a report) Has anyone seen these issues or have a good way to troubleshoot? 回答1: This has to do with your JavaScript. I've seen

Integrating Octopus Deploy and Dynamics CRM

和自甴很熟 提交于 2019-12-22 06:45:01
问题 I'm using an on premises version of CRM 2011, which I'm about to begin developing against. We're using Octopus Deploy with some other sites. It would be great if there was a way to import CRM Solutions using a powershell script or wcf service, rather then someone manually navigating to the site and go through the motions.(we have dev,test and prod environments) I can't seem to find a non UI method of doing this online. Can anyone suggest a better solution then using the UI? 回答1: You can

Invalid CRM 2011 LINQ Query: “Invalid 'where' condition. An entity member is invoking an invalid property or method.”

喜欢而已 提交于 2019-12-22 04:53:10
问题 I am trying to execute this query to retrieve Audit items for specific entity types public List<Audit> GetAuditChangesSince(DateTime since, string entityType) { return (from a in OrgContext.CreateQuery<Audit>() where a.ObjectId != null && a.ObjectId.LogicalName == entityType && a.CreatedOn > since select a).ToList(); } The a.ObjectId != null && a.ObjectId.LogicalName == entityType && clause is causing problems. I know .Equals() may cause problems (hence ==) and there are these limitations to

Can't access Microsoft.Xrm namespace

旧时模样 提交于 2019-12-21 07:02:05
问题 I've downloaded CRM Dynamics SDK and keep it in a local directory. In my code, I'm using EntityCollection (amongst other classes related to Xrm namespace), which means that I need to add using Microsoft.Xrm.Sdk; . The problem is that during compilation I get errors saying that: The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) So, I double check that the reference is made and, very accurately, I see that microsoft.xrm.sdk

Dynamics Crm: Get metadata for statuscode/statecode mapping

风格不统一 提交于 2019-12-21 03:48:27
问题 In Dynamics CRM 2011, on the Incident entity, the "Status Reason" optionset (aka statuscode) is related to the "Status" optionset (aka statecode) e.g. see this screenshot When I use the API to retrieve the Status Reason optionset, like so: RetrieveAttributeRequest attributeRequest = new RetrieveAttributeRequest { EntityLogicalName = "incident", LogicalName = "statuscode", RetrieveAsIfPublished = true }; RetrieveAttributeResponse attributeResponse = (RetrieveAttributeResponse)serv.Execute

Convert EntityReference to Entity

徘徊边缘 提交于 2019-12-20 12:35:43
问题 Does anyone know how can Convert EntityReference to Entity. protected override void Execute(CodeActivityContext executionContext) { [Input("Email")] [ReferenceTarget("email")] public InArgument<Entity> EMail { get; set; } Entity MyEmail = EMail.Get<Entity>(executionContext); This give me an error. Cannot convert this. 回答1: The shortest answer to your questions is to query the database for the entity that's pointed out (referred to) by the entity reference. I've always viewed entity references

What are the (dis)advantages of early bound?

荒凉一梦 提交于 2019-12-20 09:40:07
问题 I'm researching the pros and cons of early and late binding in CRM. I've got a good idea on the subject but there are some points I'm unclear about. Some say that early biding is the fastest, other that lates is. Is there any significant difference? How does one handle early binding for custom entities? How does one handle early binding for default entities with custom fields? There is a lot of links but the most useful I got my mouse on were those. Any other pointers? Pro both Pro early Pro

Display a grid of unrelated records on the form of an entity

有些话、适合烂在心里 提交于 2019-12-20 05:15:15
问题 I have 3 CRM entities: A, B and C. There is a 1:N relationship between A & B. I have a custom activity D. There is a 1:N relation between B and D On creation of an instance of D, it's "Regarding" field set to an instance of C. C is not related to A or B directly via any direct relationship. The question: In the form for C, is there a way to somehow get to the ID of the instance Of A(via the "Regarding" field between C & D such as C --> D --> B --> A) and use that ID of A to display a grid of

Import data from excel sheet with new columns in CRM 2013 Online

爷,独闯天下 提交于 2019-12-20 04:14:05
问题 I previously imported data from an excel sheet into CRM that had around a dozen columns in it. At that time some of those columns were empty. Now that excel sheet has been updated to include values in those previously empty columns. How do I import only those newly updated columns in excel sheet to update their respective CRM records? Is their a way of importing them without creating duplicates and anyway messing up the records in CRM? 回答1: One to do would be to run an advanced find with the

CRM 2011 KeyNotFoundException exception

 ̄綄美尐妖づ 提交于 2019-12-20 03:30:52
问题 I am new to CRM development. I have a Custom Entity "customer". This Entity has a Field called "defaultcustomer", which can be TRUE or FALSE. I am working on a Plug-In where i need to set the "defaultcustomer" to FALSE for all the "Customers". I am doing it as below: FACTS: I have registered the plugin for the entity "customer" itself. So when the Entity "customer" is updated, the plugin fires. private void MakeAllNonDefault() { try { QueryExpression query = new QueryExpression("customer");