dynamics-crm-online

Dynamics 365 - Create OrganizationServiceProxy using IOrganizationService

泄露秘密 提交于 2019-12-10 18:25:46
问题 I have a handler class (some sdk requests are handled here) for a custom entity and this handler is referenced in many plugins/classes. This entity must be reached over admin context instead of calling user. Instead of passing the service "that is created over admin guid" to the handler class, we are trying to impersonate the service inside the handler class. For example; ----- Inside the Plugin ----- IOrganizationServiceFactory factory = (IOrganizationServiceFactory)serviceProvider

How to set textfield only with Month and year from calender in CRM

时光总嘲笑我的痴心妄想 提交于 2019-12-10 17:44:28
问题 After selecting calendar in campaign form , I need to set text field only display Month/Year instead of Day/Month/Year . How can I do this? I attached a screen shot below: Here its Day/Month/Year , but I need Month/Year . 回答1: I suspect that the date-time field is formatted according to the system settings (be that picked from CRM or the user's computer). Not sure if it's editable other than that. I'll take a look at it later today. In case it's not possible to customize the date format of a

Is it possible to retrieve schema change information in Dynamics CRM online?

大兔子大兔子 提交于 2019-12-10 10:45:07
问题 When a custom entity is created, a field is added or changed, someone makes an out-of-box changes to metadata. How to know who did it and when? The same for the creation or modification from a UI form. The metadata in CRM doesn't seem to store that information. 回答1: I think it is not possible to access information you're asking for. Such a information is not available in the on-premise CRM database and I suppose there is a similar situation with CRM Online 回答2: Not exactly what you are

Multilingual solution

蹲街弑〆低调 提交于 2019-12-09 23:45:52
问题 Two questions, hopefully with similar answers. I'll be releasing a JavaScript package in my solution where the error messages are to be displayed. The problems is that I'll be targeting German, English and French. Possibly, also a fourth language TBD. What would be the nicest way to resolve this? The label names should definitely be localized. Is there a built-in approach to that in CRM 2011? Like a resource table or something like that? My current solution for (1) is to keep an extra web

Dynamics CRM Plugin Trace log record throwing Access Denied error for System Administrator

最后都变了- 提交于 2019-12-08 11:01:44
问题 Its really weird to see Access Denied error for System Administrator in CRM. When trying to open any record from Plugin trace logs, system throws the below error in our dev environment. Access Is Denied You do not have enough privileges to access the Microsoft Dynamics CRM object or perform the requested operation. For more information, contact your Microsoft Dynamics CRM administrator. Unable to verify the missing access rights as there is no 'Download Log' button, platform trace cannot be

CRM - sending email to contacts in sub grid

夙愿已清 提交于 2019-12-08 08:08:12
问题 I work for a charity and we want to use our Dynamics 365 to support our fundraising team. We have created a 'Fundraising Event' entity with an N:N relationship to the Contact entity (renamed to 'Individual' in our Org. I have a sub grid on each entity so that we can add contacts to events either from the Contact record or from the event record. We need to be able to send emails to everyone registered for an event to wish them good luck before the event. I have created a workflow against the

Getting Plug-In Path error while Downloading attachments from Note entity and saving into local machine in Microsoft Dynamics CRM

邮差的信 提交于 2019-12-08 05:30:30
问题 Business Process Error System.ArgumentException: Illegal characters in path. at System.IO.Path.GetFileName(String path) at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)at RetrieveAttachments.RetrieveClass.Execute(IServiceProvider serviceProvider) The code is as follows: QueryExpression notes = new QueryExpression { EntityName = "annotation", ColumnSet = new ColumnSet("filename", "subject", "annotationid", "documentbody","mimetype") }; notes.Criteria

Fetch XML report aggregate undocumented limit

99封情书 提交于 2019-12-06 09:33:05
I've been struggling with this one fetchxml report for Dynamics CRM online. The report is using aggregate to detect duplications based on certain fields. So, even though it is an aggregate report, the data set will return a lot of rows. Then I found out that the number of rows returned for aggregate fetchxml is limited to 5000. I understand that normal fetchxml report will return records more than 5000 but for aggregate report, this doesn't seem to be the case. In the resultset, the 'morerecords' attribute shows as '0' too. Is there any workaround for this (except to use normal fetchxml to get

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 fetch more than 5000 entities from CRM

只愿长相守 提交于 2019-12-05 20:57:51
问题 I'm querying MS Dynamics CRM Online from my console app: public EntityCollection GetEntities(string entityName) { IOrganizationService proxy = ServerConnection.GetOrganizationProxy(); string request = string.Format("<fetch mapping ='logical'><entity name = '{0}'></entity></fetch>", entityName); FetchExpression expression = new FetchExpression(request); var mult = proxy.RetrieveMultiple(expression); return mult; } This code only returns maximum of 5000 elements in mult.Entities . I know there