dynamics-crm-2011

Create/Update method not allowed in “Activity Pointer” CRM 2011

蹲街弑〆低调 提交于 2019-12-13 16:14:01
问题 Am having a plugin that moves the activities of lead to opportunity on qualify. I have registered the plugin on "Create" of opportunity and the following is the code public void Execute(IServiceProvider serviceProvider) { IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext)); Entity entity; if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity) { entity = (Entity)context.InputParameters[

CRM 2011 - N:N (Many-To-Many) Linq Issue

旧街凉风 提交于 2019-12-13 16:12:07
问题 I have two entities who are N:N - related with each other. With an example I'll show you what I mean : I have a Session (ave_Session) and there we can put "Trainers" (ave_trainer) on each Session I'm tryting to get a list of al the "Trainers" for a particular Session They are related to each other in N:N (relationship name : ave_ave_session_ave_trainer) I work in VS2010 and with C# => I'm trying to get the data through LINQ I recently just started with LINQ, so maybe you guys can help me out

Prevent create in plugin

吃可爱长大的小学妹 提交于 2019-12-13 15:33:09
问题 I have a plugin registered on Pre-Create of a Service Activity. In the plugin I check some conditions and if they are met i want to stop creating the service activity. Instead of that service activity I want to create two other that will be a replacement. But I don't want the user to be notified for all this. Is there a way to stop the creation of the SA record in a plugin on CRM 2011? 回答1: So, If a user triggers the creation of the service activity via the Dynamics CRM GUI, the form is

Create an email activity using REST Endpoints in CRM2011-2013

此生再无相见时 提交于 2019-12-13 14:09:05
问题 The code below will create a Email Activity in CRM but I can't figure out how to add multiple recipients. If I try to add a second recipient it just replaces the first recipient. function CreateEmail() { alert("CreateEmail Begin"); var email = new Object(); email.Subject = "Sample Email Using REST"; SDK.JScriptRESTDataOperations.Create(email, "Email", EmailCallBack, function (error) { alert(error.message); }); } // Email Call Back function function EmailCallBack(result) { var activityParty

Visual Studio Team Test: How to unit test “?” operator with only Asserts() and not using any tool

喜欢而已 提交于 2019-12-13 12:44:05
问题 I need to write some unit test cases to test my code in C# Visual Studio Team Test framework. Below is the method I want to test: public static ObjectID CreateObjectID(ObjectID xrmObjectID) { return new ObjectID { Id = xrmAssociation.ID != null ? xrmAssociation.ID.Id : Guid.Empty; }; } In the above method, I need to write unit test cases to cover the conditional statements, for example: Id = xrmAssociation.ID != null ? xrmAssociation.ID.Id : Guid.Empty; So I wrote the following unit test

Add document sharepoint using web service Microsoft Dynamics CRM

偶尔善良 提交于 2019-12-13 09:46:50
问题 I have an account entity in my Microsoft Dynamics CRM and the every account I have folder in Sharepoint which contains documents of this account I want to create app on c# using Web Services CRM IOrganizationService to Add Documents in SharePoint. it's possible ? Please any links to do that. I need to help. thanks in advance 回答1: from your Question what is understood is that you have setup SharePoint in CRM Document Management System . You must have enabled Document Location for Accounts in

SOAP requests to CRM2011 via PHP

对着背影说爱祢 提交于 2019-12-13 07:25:06
问题 I am trying to create a lead in the Microsoft Dynamic 2011. I have connected my PHP script to the CRM and I get positive feedback. I have used Fiddler to get a soap code that was used to create a lead in the CRM2011. However, when I use same code through my PHP script I get 'false' return. The soap code that I have discovered is below: <s:Body> <Execute xmlns="http://schemas.microsoft.com/crm/2009/WebServices"> <command>1</command> <commandXml> <Input> <id>{00000000-0000-0000-0000

crm 2011 hide and show subgrids on dashboard with javascript

♀尐吖头ヾ 提交于 2019-12-13 06:59:59
问题 I have two subgrids on my dashboard which are vertically aligned. I am able to hide or show either subgrid, however when I hide the top subgrid, the bottom grid does not move to the top, there is an empty space where the grid use to be. I would like to both grids appear in the same location on the page as they are shown or hidden. I have the code below to hide/show: setVisible('subgrid1_d', false); setVisible('subgrid2_d', true); function setVisible(id, show){ if (show == true) $('#' + id)

How to change a lead id dynamically after cloning it in a crm?

南楼画角 提交于 2019-12-13 06:24:25
问题 In my Microsoft CRM I need to create a clone button that copies a lead as is so my users can modify few data in it then save it. I succeeded in adding the button to the ribbon and cloning my lead as set by the code below: Webresource: <RibbonDiffXml> <CustomActions> <CustomAction Id="My.MSCRM.incident.form.Clone.Button.CustomAction" Location="Mscrm.Form.incident.MainTab.Collaborate.Controls._children" Sequence="0"> <CommandUIDefinition> <Button Command="MSCRM.incident.form.Clone.Command" Id=

Schedule workflows via external tool

坚强是说给别人听的谎言 提交于 2019-12-13 06:00:01
问题 I've been doing some research into scheduling workflows to run at certain times/dates but I haven't really found anything that does what I need to. I read somewhere that workflows can be created in CRM and then run by a console tool or something by a Windows schedule service. By what I've read it sounds like this would be what I need but I can't find anywhere that tells me how to create one of these or set it up, so I was wondering if anyone would be able to help me with it. Thanks 回答1: A