dynamics-crm-2011

Xrm.Page.getAttribute(“”).getValue() don't get actual value

眉间皱痕 提交于 2019-12-06 11:37:30
I have a custom entity in CRM 2011 with a Closure Code(drop down list) and Solution(multiple lines text) fields. Is weird what is happening, and this is that the next sentence, is not getting the actual field value: var detailsSet = Xrm.Page.getAttribute("aux_solution").getValue(); Why this could happen? As explained in the comments, my problem was that the field wasn't taking the actual value because the focus was on it. Moving to another field before checking the values is how I solve this. I hope could help someone. That is because the object model does not get refreshed data while you have

SystemUser class in CRM2011 SDK Sample Code

℡╲_俬逩灬. 提交于 2019-12-06 10:42:57
I am using the Microsoft CRM2011 Sample Code, when I try to compile it with Visual Studio 2010, (i use the C-Sharp code only, No VB for me please), i get this error: Error 13 The type or namespace name 'SystemUser' could not be found (are you missing a using directive or an assembly reference?) systemuserprovider.cs I am compiling a file straight from the SDK ... SystemUser currentUser = serviceProxy.Retrieve(SystemUser.EntityLogicalName, currentUserId, new ColumnSet("domainname")).ToEntity<SystemUser>(); ... Similar issue with ... // Query to retrieve other users. QueryExpression

Hidding toolbar for reports created using SSRS 2008 in CRM 2011

最后都变了- 提交于 2019-12-06 09:06:46
I have created report in SSRS 2008 and have attached them to the dashboard. The report is displaying fine, except for the fact that about 15-20 % of the space gets occupied by SSRS menu toolbar which has options for printing/zooming etc. Is there a way for me to minimize that tool bar? I also have a parameter bar that I can hide. But it doesn't stay hidden by default. Is there a way for me to temporarily hide the parameter bar when the dashboard loads? while googling i got this link but when i add that parameter to the report which is deployed i am getting CRM error. i am not very sure on the

LINQ to CRM - OR in Where clause

霸气de小男生 提交于 2019-12-06 08:15:20
问题 I am trying to bring some data from Dynamics CRM 2011 using LINQ. The goal is to bring all Contact records that have changes since certain date OR have a child entity (PERC files) changed since that same date. The query looks like that: // Bring all students who have changes (at Contact entity) after specific date // momentInTime or the status of any of their perc files has been changed since // that date var students = (from c in ContactSet join pl in cga_portallogonSet on c.Id equals pl.cga

Lambda expression with .Where clause using Contains

霸气de小男生 提交于 2019-12-06 07:32:59
问题 When connecting to CRM 2013 is there a smart way to create a lambda expression that gets the entities who's GUID are in a List. This code breaks on the Where clause and gives the error: Invalid 'where' condition. An entity member is invoking an invalid property or method. Code: private List<UserInformationProxy> GetContactsFromGuidList(List<Guid> contactList) { var result = _serviceContext.ContactSet .Where(x=> contactList.Contains((Guid) x.ContactId)) // this line breaks .Select(x => new

How to get the CRM Entity Name from the Object Type Code of a RegardingID?

拟墨画扇 提交于 2019-12-06 07:20:53
So it seems that it is a fairly common question in CRM to try get the object type code when you have an entity name. But since I always have to do things the hard way, I have the reverse task: I have the object type code, and need to get the entity name. In general, the ultimate task is to take the the CRM regarding information on an email, and use it to query CRM for additional info. I can get the regardingID and the object type code easily. And for standard entities I can use a hardcoded lookup to get an entity name. But for custom entities, this won't work, as the object type code can be

Call javascript function from another javascript webresource

百般思念 提交于 2019-12-06 07:12:28
问题 There is one JavaScript web resource in CRM 2011 called new\_/Script/genericJScript.js . Which contains some functions say, \_retrieveRecord() and \_Context() as below. And I need to call these methods from another JavaScript web resource called new\_/Script/testJScript.js . How can we do this? if (typeof (MyTest) == "undefined") { MYTEST = { __namespace: true }; } MYTEST.RESTCALL = { _Context: function () { ...... }, _retrieveRecord: function () { ...... }, }; 回答1: Assuming you include both

How to link two records with JavaScript and a n:m relationship

流过昼夜 提交于 2019-12-06 07:05:40
问题 I have a many-to-many relationship between two entities. I know Dynamics CRM creates an intersect table for that in the database. And I know how I can retrieve records with a fetch command from that auto created entity. But now I want to dynamically add new records to that table using JavaScript. Is this possible? I've tried to create a new record for this type, but then I got the following error. The create method does not support entities of type ["relationship_entity_name"]. 回答1: The

What is the differences between RetrieveRequest and IOrganizationService.Retrieve in CRM?

百般思念 提交于 2019-12-06 06:33:10
I'm new in CRM workflow step development by C#. I need to know what is the main difference between RetrieveRequest and Retrieve in IOrganizationService . When must use which one? And is there any example to show how use this objects to run in a performer manner? In most cases the Retrieve method suffices. The RetrieveRequest however adds an interesting feature: it provides the option to query data associated with the retrieved object in one go. Imagine you need invoice data along with its Invoice Product records. One option would be to create a QueryExpression and join the results of the

CRM 2013: Calling actions from javascript

若如初见. 提交于 2019-12-06 06:15:29
I was trying to call action from javascript using the below function: function ExecuteActionCreateProject(reason, entityId, entityName, requestName) { // Creating the request XML for calling the Action var requestXML = "" requestXML += "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">"; requestXML += " <s:Body>"; requestXML += " <Execute xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">"; requestXML += " <request xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\">"; requestXML += " <a:Parameters