dynamics-crm-2011

Communicating between IFRAME and an entity

冷暖自知 提交于 2019-12-13 01:13:34
问题 I couldn't make a request to a remote server using JavaScript in the onload function due to access is denied insanity. So, just to make CRM obey, I set up an IFRAME and connect that to a HTML page running my JavaScript. Now, provided that I get some values inside the script (run in an IFRAME ) how can I communicate them to a method in the holding parent? Not quite sure how to explain it more detailed so please feel free to ask. 回答1: Recently I had the joy of connecting to a web service and

Setting OwnerId of a custom activity

孤街醉人 提交于 2019-12-12 20:52:32
问题 I have created a custom CRM activity that I'm using in a workflow. I'm using this activity as an InArgument to a custom workflow activity. In the Execute() method I'm trying to set the OwnerId of the custom CRM activity instance to a system user and calling UpdateObject(entity) on the context object that I have generated using CrmSvcUtil. [Input("Some name")] [ReferenceEntity("mycustomactivity")] [Required] public InArgument<EntityReference> MyCustomActivity{get;set;} void Execute

how to get related entities in dynamics CRM 2011

孤者浪人 提交于 2019-12-12 15:21:28
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . We are currently developing a Silverlight webresource in the recently released Dynamics CRM 2011. At this moment we wanted to implement an autocomplete box displaying the collection of accounts, with their addresses. We are currently stuck at the relationship we needed to follow from the account entity to the address entity. At this moment I just graduated,

Aggregate Query limit exceeded?

若如初见. 提交于 2019-12-12 14:27:08
问题 I've got a 2 part question: First question : I know that there is a query limit of 5,000 records when querying records, for performance reasons, but is there a limit when doing an aggregate query? If so, what is it? I need only to query the number of records and for one entity I can get a result of 39,000+ records, but for another entity I see an error message like: System.ServiceModel.FaultException 1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: AggregateQueryRecordLimit exceeded. Cannot

Crm 2011 outlook client - Set regarding mandatory

╄→гoц情女王★ 提交于 2019-12-12 13:39:49
问题 Our client is using Microsoft CRM 2011 outlook client and they have a unique business need. They want to make the "Set Regarding" mandatory for all of their employees using outlook to send emails (Weird huh?). If a user while sending the email forget to set regarding, outlook should display a notification message and shouldn't let the user send the email. I have not been able to find any out of the box feature for this so I decided to write an outlook addin. Is there a way to know in outlook

Is Target always an Entity or can it be EntityReference?

谁说我不能喝 提交于 2019-12-12 12:19:55
问题 I discovered that in some of my code I have the following syntax guarding the plugin from FUBARing. I can't for the love of god not remember why I put the disjuction conditional for EntityReference . Is Context.InputParameters["Target"] every EntityReference ? bool goodToGo = Context.InputParameters.Contains("Target") && Context.PrimaryEntityName == "email"; && ( Context.InputParameters["Target"] is Entity || Context.InputParameters["Target"] is EntityReference); Is it ever anything other

How to add a value to a lookup field?

我的梦境 提交于 2019-12-12 11:59:29
问题 I have a entitiy "account "in which it has some name_field in Microsoft Dynamics CRM. Other than lookup field , every other fields values can be inserted. how to select an existing value in look up???? I used the following code to add value to the lookup field.. However I don't get any error.. Account acc = new Account(); acc.Attributes["name"] = "Ram"; // this values got inserted acc.Attributes["age"] = "22"; // this values got inserted acc.Attributes["lookupfieldid"] = "Sampletext"; service

CRM Online 2011 Integration Testing running in Production environment

倾然丶 夕夏残阳落幕 提交于 2019-12-12 09:53:29
问题 I'm writing some code for Dynamics CRM Online 2011. I'd like to have a set of integration tests be run in CRM Online and be able to examine: Some log output Assertion failures Under the control of a test runner on my local machine. Right now, I'm doing: var passes = new List<string>(); var fails = new List<Tuple<string,Exception>>(); foreach(Action<StringWriter> testAction in EnumTests()) { var log = stringWriter(); try { testAction(log); passes.Add(log.ToString()); } catch(Exception e) {

CRM 2011 GROUP and COUNT

♀尐吖头ヾ 提交于 2019-12-12 09:27:42
问题 I am trying to GROUP the CRM records that have the same "Owner" name and also get a count of the records for each GROUP. So I have a DLL that runs on a schedule and pulls the info down from CRM 2011. But I can't seem to get it to group and do a count of the records for each group. For example all the records with the Owner of "Bob" will say Bob you have X records. And any records with the Owner of "Ted" would say Ted you have X records, etc. For every owner there is. Any idea how to do this?

How to get all entity's fields CRM 2011?

一曲冷凌霜 提交于 2019-12-12 09:01:33
问题 I'm trying to get all entity's fields schema names without query to existing record. I haven't got any idea. Also, How can I get it with QueryExpression, cause it retrieve all fields, which contain some info? Andrii, I'm trying to do something like this var query = new QueryExpression {EntityName = "", ColumnSet = new ColumnSet(true)}; var retrieve = service.RetrieveMultiple(query); 回答1: If you have the CRM SDK (http://www.microsoft.com/en-us/download/details.aspx?id=24004), you will find a