Questions tagged [xrm]

xRM is an alternative term used to market Microsoft Dynamics CRM. Generally, unless the question deals with those marketing differences, questions should not be tagged here.

205 questions
18
votes
11 answers

Can't access Microsoft.Xrm namespace

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…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
13
votes
3 answers

How do you do indexing on Crm 2011?

We are using Crm 2011 as our persistence layer and we noticed terrible performance. We looked and lo and behold there are indexing, but the indexing is a composite of all the columns in the entity (well almost). Which makes it practically useless…
Alwyn
  • 8,079
  • 12
  • 59
  • 107
5
votes
4 answers

The type or namespace 'Xrm' does not exist

I have got an error that is 'The type or namespace 'Xrm' does not exist in the namespace 'Microsoft''. I've already added Microsoft.Xrm.Sdk.dll. My project's Framework version is Framework 4.5. I added .dll from CRM 2015 SDK folder. Why is that…
Jungleman
  • 286
  • 2
  • 6
  • 20
4
votes
1 answer

How can I add static text to my MSCRM form?

I need to add static text on my form (can't use the xrm notification option) under specific terms I need to show and hide that text but I can't hold it in a field. First I thought to use an Image with my text on the form, is there a better way to…
Damkulul
  • 1,406
  • 2
  • 25
  • 59
4
votes
0 answers

CRM SDK OrganizationServiceContext null navigation properties on entity

Trying to migrate an existing solution away from the deprecated Microsoft.Xrm.Client namespace to just use the generated service context from CrmSvcUtil using CrmSDK 9.0.0.5. Previously we were using…
4
votes
2 answers

How can I use condition and filters in LinkEntity?

I want to create a QueryExpression to simulate this SQL statement select * from A inner join B on A.b_id=B.ID where B.Name like "% what ever %" this is how the FetchXML might look like
Opt Prutal
  • 384
  • 4
  • 14
4
votes
1 answer

Xrm.Utility.openEntityForm setting Look Up field

I am attempting to use the Xrm.Utility.openEntityForm() method to open a new custom entity form and programatically set an entity look up field. I am following an example on http://msdn.microsoft.com/en-us/library/gg334375.aspx very closely but…
CCMag
  • 43
  • 1
  • 6
4
votes
1 answer

"cannot be assigned to -- it is read only" error on ConditionExpression

I have to create "between date" condition. When I write like this: ConditionExpression modifiedOnCondition = new ConditionExpression(); modifiedOnCondition.AttributeName = "modifiedon"; modifiedOnCondition.Operator =…
Jungleman
  • 286
  • 2
  • 6
  • 20
4
votes
4 answers

Unable to use Xrm.Page.getControl to get an iframe

After the upgrade from dynamics-crm 2011 to dynamics-crm 2013 I am having some issues trying to refresh an iframe. Previously and in the sdk Microsoft has to get a control/iframe use the "Xrm.Page.getControl()" or other posts say to use…
Dustin Warner
  • 71
  • 1
  • 3
3
votes
1 answer

Get Contact's TFS Project

Working with C# and Team Foundation Server I am working on a webservice that will allow Microsoft CRM to create a workitem in TFS without having to use TFS interface. Everything is working smoothly except for one thing. Is there a way to know in…
Érik Desjardins
  • 993
  • 1
  • 12
  • 25
3
votes
1 answer

CRM 2011 generated code using ICodeWriterFilterService fails to build

Using the sample code at http://erikpool.blogspot.com/2011/03/filtering-generated-entities-with.html I have altered this so that GenerateEntity and GenerateOptionSet to have the code: return…
Duncan Watts
  • 1,331
  • 9
  • 26
3
votes
2 answers

How to disable CRM 2011 Xrm caching?

I have problem with crm 2011 caching. I don't need it, but I don't know how to disable it. First I generate this: CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration"…
valch
  • 577
  • 2
  • 7
  • 17
3
votes
1 answer

How to call Action with parameter(s) using ExecuteWorkflowRequest in Dynamics CRM 2016?

Context I can successfully call Actions using ExecuteWorkflowRequest where the called action has no parameters: var request = new ExecuteWorkflowRequest { EntityId = myEntityId, WorkflowId = myWorkFlowId, }; service.Execute(request); where…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
3
votes
2 answers

CRM 2015, 'Xrm' namespace not found

I can't get CRM 2015 sdk working. I keep getting this error: The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) I am using .NET 4.5.2. All threads I've found online were about…
Cosmin Plesa
  • 91
  • 2
  • 8
3
votes
1 answer

Dynamics CRM Email entity isReply, isForward replacement in 2013/2015?

In Dynamics CRM 2015 Email forms I need to know if email is forwarded, replied etc. In Dynamics CRM 2011 there used to be JavaScript variables for this e.g. isReply, isForward, isReplyall These variables doesn't exists in Dynamics CRM 2013/2015. Is…
1
2 3
13 14