crm

CRM LINQ Composite join “The method 'Join' is not supported” error

痴心易碎 提交于 2019-12-11 02:40:30
问题 Im getting a "The method 'Join' is not supported" error... Funny thing is that i simply converted the 1st LINQ into the 2nd version and it doesnt work... What i wanted to have was LINQ version #3, but it also doesnt work... This works var query_join9 = from s in orgSvcContext.CreateQuery(ServiceAppointment.EntityLogicalName) join b in orgSvcContext.CreateQuery(bh_product.EntityLogicalName) on s["bh_contract"] equals b["bh_contract"] where ((EntityReference)s["bh_contract"]).Id == Guid.Parse(

how to hide a pre-filter window in CRM 2011?

这一生的挚爱 提交于 2019-12-11 02:13:25
问题 I'm looking for a way how to hide a pre-filter in CRM 2011. I created a sipmle report by using business intelligent studio. Eventially, the reports shows a table with data (SQL query like select column1, column2....from table) when I open it in CRM I get a window where I have to built filter. Is there any way avoid such window? I found that I cand set a query in filter by default but anyway It doesn't help except this screen thanks in advance 回答1: To remove the pre-filter page, you have to

How to change State/Status in CRM 2013 using c#

六月ゝ 毕业季﹏ 提交于 2019-12-11 01:34:29
问题 How do I change State and/or Status of an entity in CRM 2013 using C#? Neither CRM 2011's SetStateRequest nor the earlier SetStateDynamicEntityRequest are being recognized. Searching online didn't seem to help either... Am I missing a namespace or something? Thanks in advance Namespaces: using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Client; using Microsoft.Xrm

Dynamics CRM Online 2016 - Daemon / Server application Azure AD authentication error to Web Api

可紊 提交于 2019-12-10 22:34:56
问题 I am building a C# windows service that needs to connect to the Microsoft Dynamics CRM Web API. I am using the example code from github "A .NET 4.5 daemon application that uses a certificate to authenticate with Azure AD and get OAuth 2.0 access tokens, Github". I am able to retrieve an access token from AAD, however, when I call the Dynamics CRM resource i get the following error: HTTP Error 401 - Unauthorized: Access is denied StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, WWW

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

How to create and delete data from entity relationship many-to-many in CRM 2011?

﹥>﹥吖頭↗ 提交于 2019-12-10 16:45:27
问题 How to create and delete data from entity relationship many-to-many in crm 2011? Code: QueryExpression qry = new QueryExpression(); qry.EntityName = "entity1_entity2"; qry.ColumnSet = new ColumnSet(true); var re = crmservice.RetrieveMultiple(qry).Entities; crmservice.Delete("entity1_entity2", re[0].Id); FaultException: The 'Delete' method does not support entities of type 'entity1_entity2'. 回答1: In order to link two records via a N:N relationship, you have to use the Associate/Disassociate

How to Refresh the parent Form in CRM Dynamics 5.0 after action is completed on custom child form?

杀马特。学长 韩版系。学妹 提交于 2019-12-10 15:55:20
问题 I have a parent form called ISSUE. This Issue form has a button called IG on the Form Ribbon that opens custom Html Page. Now after the Submit button is clicked on the Custom form that performs some Inserts into CRM and Closes directly. Now I want to refresh the parent ISSUE form on closing the child HTML Page to reflect my Inserts. Here is the code that i used to call the Child Form on clicking IG Button from the Issue Form Ribbon: function popup() { var url = './WebResources/irpc_/planner

Why are all reference properties null in my CRM plugin?

纵然是瞬间 提交于 2019-12-10 14:54:54
问题 I'm writing a PostUpdate Plugin on the contact entity using early binding. Unfortunately, all properties which should represent 1:x relations are null. The code is pretty simple: * CRMcontext is the generated file via CrmSvcUtil.exe, * service is the IOrganizationService from LocalPluginContext: using ( var serviceContext = new CRMcontext(service) ) { // This works fine var contact = serviceContext.CreateQuery<Contact>().First(c => c.Id == context.PrimaryEntityId); // why is currency null

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

Regular expression to require 10 digits without considering spaces

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 10:12:34
问题 I need a regex to limit number digits to 10 even if there are spaces. For example it allows 06 15 20 47 23 the same as 0615204723 . I tried: ^\d{10}$ , but how do I ignore spaces? Also, the number should start with 06 or 07 . (Editor's note, the last requirement was from comments by the OP.) 回答1: This will do it in most regex systems. (You need to state what language you are using!) /^\s*(0\s*[67]\s*(?:\d\s*){8})$/ But assuming you really only want the number, then go ahead and break it into