dynamics-crm-2011

CRM 2011 Workflows: Finding the previous values

巧了我就是萌 提交于 2019-11-30 21:04:40
I currently have a workflow which is triggered when a certain decimal field is changed. Is it possible to get the difference between the old and new values via a workflow? Finally had the time to test this, and it is perfectly possible to retrieve the pre values in a workflow using a workflow assembly. Here's what I did: I created a workflow on Contact, with a trigger on LastName. The workflow contains a reference to the field lastname, and a custom workflow assembly . I opened a contact and changed it's lastname from 'Foo' to 'Bar' Code of the custom workflow assembly: protected override void

Total Row Count for Grouped Values in SSRS 2008

扶醉桌前 提交于 2019-11-30 18:55:07
I have a report that displays names of all accounts and activities performed under each of them. AccountName: ABC Corp Activity: Installation I want to group the AccountName and get the total number of Activities performed for each account. ABC Corp: 1 How can I accomplish this in SSRS 2008? I am able to group the AccountName but I need a way to convert the Activity column to int so I can get the total. Help appreciated! You can add a total row for the Account group and give your total field the expression CountRows("AccountGroupName") , to count the Activity detail rows for each Account group

Total Row Count for Grouped Values in SSRS 2008

不问归期 提交于 2019-11-30 16:54:30
问题 I have a report that displays names of all accounts and activities performed under each of them. AccountName: ABC Corp Activity: Installation I want to group the AccountName and get the total number of Activities performed for each account. ABC Corp: 1 How can I accomplish this in SSRS 2008? I am able to group the AccountName but I need a way to convert the Activity column to int so I can get the total. Help appreciated! 回答1: You can add a total row for the Account group and give your total

Retrieving list of Entities

折月煮酒 提交于 2019-11-30 15:59:42
In CRM 2011 I can do the usual Create, Update, Delete operations using EarlyBoundEntities. I cant, however, seem to find an example of retrieving a list of entities using the same type of code. Is there a way of retrieving a list of items of type using EarlyBoundEntities? I've looked through MSDN and all I can find is how to retrieve an Entity if I know its GUID already. // Retrieve the account containing several of its attributes. ColumnSet cols = new ColumnSet( new String[] { "name", "address1_postalcode", "lastusedincampaign" }); Account retrievedAccount = (Account)_service.Retrieve(

Calling a dialog in Dynamics 2011 and passing multiple recordIDs to it

喜欢而已 提交于 2019-11-30 14:11:21
问题 I want to allow the user to select one or many contacts from the contact entity, and then launch a dialog that accepts the record IDs. The idea is to add some custom configuration to the contacts. I've currently got a custom action on a ribbon button that launches a dialog, but it only accepts one record Id. I can get access to the list of selected record Ids, thatisn't the problem, it is passing a list to the dialog using JavaScript. I can't seem to find anything in the SDK or code snippets.

LINQ to Dynamics CRM Query filtering records locally

孤街醉人 提交于 2019-11-30 12:21:59
I have written a Linq to CRM query using CRM 2011 RC (v5) LINQ-to-CRM provider. I have a locally declared List<T> which I want to join to a CRM entity and I want the query to be executed on the CRM Server. An example might help: MyObject myObject = new MyObject(); List<myAccount> myAccountsList = new List<myAccount>(); myAccountsList.Add(new myAccount() {AccountNumber = "123"}; myAccountsList.Add(new myAccount() {AccountNumber = "456"}; myObject.ListOfAccounts = myAccountsList; var accountsQuery = from ax in myObject.ListOfAccounts join a in orgContext.CreateQuery<customAccountEntity>() on ax

Plugin with references not working on CRM 2011

家住魔仙堡 提交于 2019-11-30 09:24:24
I have created a plugin and used a reference to another project (DLL) I have created. The problem is when I try to run the plugin, I get a CRM error saying: Could not load file or assembly 'XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a760feb9ec7271a9' or one of its dependencies. The system cannot find the file specified. Does anyone have any idea on solving this one? ccellar You have to deploy the referenced assembly either to the GAC or merge it with your one (with ILMerge) See also http://msdn.microsoft.com/en-us/library/gg309620.aspx and Creating a single CRM plugin DLL to store

Retrieve rows in crm2011 subgrid with JScript

我的未来我决定 提交于 2019-11-30 09:09:50
问题 As an JScript newbie, I have a problem with a subgrid in MS CRM 2011. I have a form with a subgrid and in OnSave of that form, I want to loop over all the rows in the subgrid. How can I do this with JScript ? Or is it possible another way, ex plugin ? Thx 回答1: Here is the sample code which you can do on save of the form var gridControl = document.getElementById('grdrelatedcontacts').control; for (var intRowNumber = 0; intRowNumber < gridControl.getRecordsFromInnerGrid().length; intRowNumber++

How can I connect to a Microsoft Dynamics CRM server using Python?

我们两清 提交于 2019-11-30 07:44:28
The Microsoft Dynamics CRM service uses NTLM authentication, which makes connecting to it from a python process using suds somewhat complicated. I'm looking for a code sample that will: Send and receive the response from a RetrieveAttributeRequest Send and receive the response from an Execute request. This must use Python 2.6 or Python 2.7, not Python 3. I already have a working implementation that uses curl to do this, but it's flaky at the best of times, and as part of some other work I have in this tool I'd like to clean it up and make it run using python/suds. Dan P. I know this is a bit

CRM 2011 Workflows: Finding the previous values

本秂侑毒 提交于 2019-11-30 05:31:22
问题 I currently have a workflow which is triggered when a certain decimal field is changed. Is it possible to get the difference between the old and new values via a workflow? 回答1: Finally had the time to test this, and it is perfectly possible to retrieve the pre values in a workflow using a workflow assembly. Here's what I did: I created a workflow on Contact, with a trigger on LastName. The workflow contains a reference to the field lastname, and a custom workflow assembly . I opened a contact