dynamics-crm-4

Implementing a .NET application in ISV MS CRM 4.0

最后都变了- 提交于 2019-12-11 16:59:46
问题 I'm trying to create a small application within CRM in the ISV folder. I created a new application using Visual studio 2008. The only thing it does is Response.Write("Hello world!") in the onLoad-function. I compiled it and uploaded it to a virtual folder (app) in the ISV directory in CRM. If I now go to crm.mycrm.nl:5555/ISV/app I get: 'Microsoft.Crm.WebServices.Crm2007.CookieAndSoapHeaderAuthenticationProvider, Microsoft.Crm.WebServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken

Why do I get 401 errors connecting to the Dynamics CRM Metadata service?

*爱你&永不变心* 提交于 2019-12-11 13:04:33
问题 I am connecting to CRM with the intention of retrieving a list of picklist values. On my development machine I am working under my own login name and all works fine. On the test server, the code executes under the NETWORK SERVICE account. When it connects to the CRM web service everything is great. When it connects to the metadata service I get 401 Unauthorised messages. This is the first time I have used the metadata service so I am hoping someone can tell me why I get the error. The

running microsoft crm 4.0 on Windows 7

岁酱吖の 提交于 2019-12-11 05:49:16
问题 Is it possible to run CRM4 in Windows 7? Even if not officially supported, is there a way to make it work? 回答1: No. It is not possible. The installer checks for the required operating system and will exit on Windows 7. You would have to patch the setup to remove this check. I would recommend to create a virtual machine and install the environment into it. See the supported server versions. 回答2: I don't know of any restrictions of running CRM on a windows 7 machine (actually I've seen a few

Add columns in Article view in MS Dynamics CRM 4.0

陌路散爱 提交于 2019-12-11 05:27:29
问题 The Article entity in MS Dynamics CRM 4.0 doesn't appear to be customizable. Is there any way to add some columns to the view that shows the list of article (without doing an Advanced Find)? I'd like to see the Created By and Created On attributes in there. 回答1: As far as my understanding of the SDK's page on "Unsupported Customizations" goes, this is a supported change....although I can't say for certain. Go to the following URL (making the necessary replacements): http://YOURCRMSERVER

Retrieving a single Guid in CRM 4.0

╄→гoц情女王★ 提交于 2019-12-10 19:47:27
问题 I'm new to CRM (version 4.0) and i'm trying to return a 'yearid' guide based on a given year (which is also stored in the entity).So far i've got: public static Guid GetYearID(string yearName) { ICrmService service = CrmServiceFactory.GetCrmService(); // Create the query object. QueryExpression query = new QueryExpression("year"); ColumnSet columns = new ColumnSet(); columns.AddColumn("yearid"); query.ColumnSet = columns; FilterExpression filter = new FilterExpression(); filter.FilterOperator

Left join in FetchXml?

本秂侑毒 提交于 2019-12-10 15:28:49
问题 How do i do a left join using FetchXml? Consider a simple SQL query like the following: select person.name, address.city from person left join address on person.addressid = address.addressid How would something simple like this be done using FetchXml? Currently my FetchXml query looks like the following: <fetch mapping='logical'> <entity name='person'> <attribute name='name' /> <link-entity name='address' from='addressid' to='addressid'> <attribute name='city' /> </link-entity> </entity> <

Concatenated / Calculated Columns in Dynamics CRM View

陌路散爱 提交于 2019-12-10 13:52:38
问题 I am new to MS Dynamics and I would like to know if there is a way of adding column to a view within that is a concatenation of some other columns, for example: Firstname + ' ' + Lastname As Fullname There doesn't seem like there is an obvious (elegant) solution to this, all the suggestions I have seen suggest using javascript to maintain an new attribute. Taken one step further, if I want to derive or calculate a column from another column for example a person's age from their date of birth,

Dynamics CRM: Create users with specific GUIDs

拜拜、爱过 提交于 2019-12-10 10:58:15
问题 For integration purposes our users in Dynamics CRM need to have the same GUIDs as in the rest of our environment (several custom web apps built on ASP.NET and SQL Server 2005). But when we try to create a new Dynamics user with a certain GUID, Dynamics just ignores it and creates its own (the pattern of which leads me to believe that it’s using NEWSEQUENTIALID() internally, just as if the user was created through the UI). But for other types (contact for example) Dynamics takes the GUID with

Retrieving custom entities in CRM 4 C#

瘦欲@ 提交于 2019-12-08 18:07:33
In our CRM environment users have a 1:N relation to an available hours entity which represents their actually available hours for the week. I'm looking for a way in c# to retrieve all the available hours for users that are of a specific team for the current week. I'm new to developing in CRM and I've looked around but there seems to be a lot of ways to do this and im not sure which is best suited. The language is C# and the version of CRM is MS CRM 4.0 I'll cover this is 3 bits: general approach, code itself and then some notes on the code (the code is commented to draw attention to certain

How can I update the roles for a given list of users?

♀尐吖头ヾ 提交于 2019-12-08 10:02:26
问题 I'm trying to move a whole load of users from 1 business unit to a newly setup 1. I'm not a CRM expert by any means, and I've been informed that to move the users we need to store their existing roles first, then move them to the new BU and then restore their roles that aren't BU specific and then modify the ones that are. An example for a user would be: BU1 Roles: BU1Admin BU1Read-Only Contracts Move these to: BU2 Roles: BU2Admin BU2Read-Only Contracts So in this example the user would need