dynamics-crm-2011

What should be used instead of the deprecated EntityName.account.ToString()?

夙愿已清 提交于 2019-12-20 02:31:04
问题 When I design a QueryExpression , I've always used the following, hard-coded syntax. QueryExpression expression = new QueryExpression { EntityName = "account"; ... } In this blog the following syntax based on this enumeration is used. QueryExpression expression = new QueryExpression { EntityName = EntityName.account.ToString(); ... } I liked it much better but I couldn't find it using intellisense. Then I've found this discussion where it's explained that the syntax is deprecated. So, what

Objective-C & Interacting with Microsoft Dynamics CRM

烈酒焚心 提交于 2019-12-20 01:45:06
问题 I'm looking to interact with my Microsoft Dynamics CRM system from my iPhone, performing tasks such as pulling down, updating, creating and deleting records. Is this possible? If so, can anyone link me to any good resources on the matter or provide me with any information you feel would be relevant? Many thanks, Jack 回答1: Yes this will be possible and there are at least some relevant pointers in the CRM SDK (Development from Non-.NET Clients in Microsoft Dynamics CRM) however general support

Access MS CRM Web Services From External App/Javascript

扶醉桌前 提交于 2019-12-19 10:19:12
问题 Is there any way to call the MS CRM web service from JavaScript from a web page that is NOT a CRM web page (i.e., not in the load or save event in a CRM form, but from a stand alone web page)? A second question: is there any way to call the MS CRM Web Service from VBScript? Ideally I'd like to do this in CRM 2011, but would be happy to have an example from CRM 4.0. I'm thinking I'm going to have to write a wrapper web service to do this but I would rather not go that route unless necessary.

Assign new owner to appointment. “There should be only one owner party for an activity”

折月煮酒 提交于 2019-12-19 08:01:43
问题 I need to change the owner of an appointment record when creating a new appointment. I'm using a plugin for the create message and i've found this code to assign a new owner to the appointment: entity = context.PostEntityImages["PostImage"]; ...... AssignRequest request = new AssignRequest(); //request.RequestName request.Assignee = new EntityReference("systemuser", owners.ToList()[0].Id); request.Target = new EntityReference(Appointment.EntityLogicalName, entity.Id); service.Execute(request)

CRM 2011 Workflow “Invalid Pointer” error

眉间皱痕 提交于 2019-12-19 05:45:02
问题 I have a custom workflow in CRM 2011 which is manually triggered against custom entity records. When a single record is selected for processing, the workflow is always successful. However when selecting more than one record, at least one will fail. The error(s) provided seem to vary from one attempt to the next, even though the same data is being used. Errors I've encountered so far are: ValidateOpen - Encountered disposed CrmDbConnection when it should not be disposed You cannot create a

Add Dropdown Menu to CRM 2011 ribbon

痴心易碎 提交于 2019-12-18 16:37:23
问题 I 'm new to crm 2011. I've found documentation on how to add a new button to the ribbon. And how to group the buttons. But i need a dropdown menu button in the ribbon. How can i do this? I didn't found any information about this. Thanks! 回答1: This should get you started. If all you need is a static menu you can put the tag inside the Flyout Control and build the menu from there. <FlyoutAnchor Id="Sample.account.form.FlyoutAnchor.Static" Sequence="10" Command="Mscrm.Enabled" Image16by16="/

CRM 2011: Getting entity with Javascript

不打扰是莪最后的温柔 提交于 2019-12-18 10:29:31
问题 I am working on some CRM 2011 Online customisations and I need to get an entity using javascript. The entity I need will be based on the ID value of another field (a Contact entity) - this Contact ID I can get fine. The entity I want is a custom entity. There may be multiple matches based on the Contact ID so I just want to get the first one in the list (order not important) So far I have looked into a few ways to do this... OData - I couldn't find enough examples on this as to what query

“EntityState must be set to null, Created (for Create message) or Changed (for Update message)” when attempting to update an entity in CRM 2011

China☆狼群 提交于 2019-12-18 05:37:44
问题 I am using the following code to update an entity. Service.Update(_policy); where policy is a class generated using CrmSvcUtil.exe public partial class new_policy : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged I retrieve the policies using LINQ, then update one attribute (an EntityReference) and then attempt the update When this code runs I get the following error message: EntityState must be set to null, Created (for

The method 'Where' cannot follow the method 'Select' or is not supported

China☆狼群 提交于 2019-12-17 21:07:32
问题 Why am I getting: The method 'Where' cannot follow the method 'Select' or is not supported. Try writing the query in terms of supported methods or call the 'AsEnumerable' or 'ToList' method before calling unsupported methods. ...when using the WHERE clause, like when calling: XrmServiceContext.CreateQuery<Contact>().Project().To<Person>().Where(p => p.FirstName == "John").First(); ? This works: XrmServiceContext.CreateQuery<Contact>().Project().To<Person>().First(); Also this works:

How to Connect to CRM Dynamics Online Odata endpoint LinqPad?

陌路散爱 提交于 2019-12-17 20:27:46
问题 I'm able to connect to self-hosted CRM sites just fine with the default Odata driver within LinqPad. The URI I use in the "WCF Data Services (OData) Connection" dialog for self-hosted is in the format http://MyServer.com/MyOrgName/xrmservices/2011/OrganizationData.svc. The user name is in the format "domain\username". When I attempt to follow the same format for an CRM Online instance, it doesn't work. I'm guessing it's either because of the https, or the windows live credentials, but don't