dynamics-crm

CRM 2011 Maximum depth reached

馋奶兔 提交于 2019-12-11 05:25:10
问题 I have a transaction in CRM and it is reaching its maximum depth (8), it is a very complex chain of plug-ins and the business requires this operation in this way. Is it a good option to change the maximum depth from (8) to (16) because our business requires or there is something that we should not do because there is a lot of logic being reached. I asking this because Microsoft says this restriction is to detect infinite loops. I want to ask Microsoft this, but this person that Microsoft has

FormType not returning proper value on Dynamics CRM 2016

给你一囗甜甜゛ 提交于 2019-12-11 04:46:46
问题 In javascript, I have written Xrm.Page.ui.getFormType(); . This code does not work when form is read-only. Even though on the form it is written read-only on the bottom of the record, it is giving me formtype as 2. even Onload shows formtype 2 回答1: Edit: Sounds like a bug in CRM 2016 (v8.2) - credit goes to @Alon in above comment. I was able to test it quickly, like below. First scenario : Users' security role don't have Edit/Update privilege for that particular entity record. So the footer

How to set a default form from sub-grid

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 04:24:06
问题 I've created a sub-grid in Contacts Entity to show related lead records for the contact. Due to the client requirement, We also have the functionality to create a new lead from contact entity through this sub-grid. Everything is fine till here. We have two lead forms created by each product line. Say Home Furniture Lead form and Office Furniture Lead form. I'm looking for an ability to set the Home furniture lead form as a default form to open from the sub-grid in contacts entity. When the

Using JavaScript to Show/Hide multiple fields on the same form with same id name

北战南征 提交于 2019-12-11 03:57:38
问题 I have to fields on the same Dynamics CRM form. One is Account Name and the other field is Company. They both share the same field id name which is parentcustomerid. I need to show/hide these fields based on the value of an option set of another field. I can get the Account name field to show/hide but the Company field will not show/hide. function showHideSourceField() { var type = Xrm.Page.data.entity.attributes.get("new_type").getValue(); var source = Xrm.Page.ui.controls.get("new_source");

how to get value/text from a OptionSet?

左心房为你撑大大i 提交于 2019-12-11 03:55:53
问题 I am creating a web resource which will populate a HTML table with tasks I was trying to get the PriorityCode of a tasks. But I don't know how to get value/text from a OptionSet . This is a screen shot : Thanks 回答1: You have query metadata, see this various methods to do that: http://crmdude.wordpress.com/2009/02/04/performing-a-javascript-web-service-call-to-the-metadata-service/ http://guruprasadcrm.blogspot.com.au/2011/07/retrieving-optionset-lable-data-using.html http://mileyja.blogspot

Restrict user access from “main area” Dynamics 365 on prem

吃可爱长大的小学妹 提交于 2019-12-11 03:37:47
问题 We've created a new "App" which is the first app so far in our solution. The idea is that a group of users will have access to this app only and they will no longer have access to the "main area" of the application. Some of the forms for certain entities will look differently than the others etc. (With "main area" I mean the "normal" area that exists by default more or less). So, it was easy to give this group of users access to the new app because they have a particular security role and we

Logic Apps- Unable to Set To and From fields For Dynamics 365 Email Entity

放肆的年华 提交于 2019-12-11 03:35:50
问题 I am trying to create an email entity in Dynamics 365 using Logic Apps. I am filling in the From and Recipient fields but the when I check the record created in Dynamics, I see that these fields are empty. I know that to and from fields are activity parties in Dynamics 365 email entity. Do we have a sample json which I can use in Logic Apps to create an Email Activity with To and From fields set? 回答1: As per the product group its not available right now to create and set to and from fields of

Using Group in LINQ Query

邮差的信 提交于 2019-12-11 02:48:34
问题 I am using the LINQ to CRM provider. I am querying the information then I am using LINQ to query the LINQ to CRM query so I can use GroupBy, since the LINQ to CRM provider does not support it. This is what I have so far. var linqQuery = (from r in orgServiceContext.CreateQuery("opportunity") join c in orgServiceContext.CreateQuery("contact") on ((EntityReference)r["new_contact"]).Id equals c["contactid"] into opp from o in opp.DefaultIfEmpty() select new { OpportunityId = !r.Contains(

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(

Xrm.Navigation.openForm not honouring formid

血红的双手。 提交于 2019-12-11 02:21:27
问题 I'm trying to follow the examples found here that explain how to use Xrm.Navigation.openForm method to open a CRM form for a new entity. My target entity has multiple forms and I'm trying to specify the form ID in the entityFormOptions object as described in the link above. I've copied the relevant text here (with the relevant line in bold): entityFormOptions Entity form options for opening the form. The object contains the following attributes: cmdbar: (Optional) Boolean. Indicates whether