dynamics-crm-365

Error Account with Id = “xxxxxx” does not exist

China☆狼群 提交于 2019-12-11 16:15:03
问题 I have a custo workflow that creates an account and opportunities. Sometimes I have this error: Account with Id = "xxxxxx" does not exist. I don't know what's wrong in my code knowing that I find the account in the CRM. Here are the steps of my plugin code: Find the account by num (if it doesn't exist, I create them) Get the account = Account Create an opportunity with Opportunity["parentaccountid"] = Account; Error message ! Code: //Get opportunity Guid id = retrieveOpportunity<string>(

How to Asynchronously Show a Create New Button On a CRM Sub Grid?

烈酒焚心 提交于 2019-12-11 07:32:13
问题 I need to hide the "Add New" button on a sub grid until certain criteria are met. Calling Xrm.Page.ui.refreshRibbon will trigger my JS function defined in my Enable Rule, but I can't get the + button to show up. Is this unsupported, or is there some methodology to get this to work? 回答1: Seems like you have to do few extra trick. Refreshing the subgrid command bar You will find that when the form is loaded, if there is a value in the attribute you have referenced in your enable rule, the Add

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

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

Dynamics CRM 365 - Cannot access Xrm.Page.entity in HTML web ressource

好久不见. 提交于 2019-12-10 19:22:05
问题 I've added an html resource in my contact form which contains only an small image in order to place it just beside a contact field. When the user clicks on it, it fires up a javascript function in which I want to get the value of a specific field of the form. The field is an attribute of the contact entity. Here is the HTML web ressource: <html> <head> <style type="text/css"> body { margin: 0; padding: 0; } </style> <script type="text/javascript"> function call() { var phoneNumber = window

Dynamics 356 v9 - use executionContext.getFormContext() with HTML web resource

旧街凉风 提交于 2019-12-10 16:37:43
问题 Any ideas how we can we use executionContext.getFormContext() with an HTML web resource? only method that seems to work is parent.Xrm.Page which is now deprecated. 回答1: We are still using parent.Xrm.Page and parent.Xrm.Utility , since the replacement is not yet announced. You should plan to use the new client APIs mentioned in the Replacement Client API column instead of the deprecated ones. The deprecated client APIs will continue to be available and supported until they are officially

Unable to add a service reference to Dynamics 365 crm in visual studio 2012

喜你入骨 提交于 2019-12-02 18:46:39
问题 I am trying to add service reference to Dynamics 365 CRM using the following API https://[Organization].api.crm8.dynamics.com/api/data/v8.2/ but each time I am getting this window that asks me for credentials.... I tried using the credentials that I use to login to the crm...but they donot work...can someone tell me which credential I should use?.. 回答1: Why exactly are you trying to add a reference to the CRM web services? Assuming you want to access CRM from server side code, what you need

show the sub grid with filtering two or three fields that all are look up in crm 365

。_饼干妹妹 提交于 2019-12-02 16:45:20
问题 I have two custom entity. I want to show the sub grid with filtering two or three fields that all are look up. In SQL way I want to select * from table where field 1 = *** or field 2=*** or filed 3 =*** But in CRM it's not possible you can select only one field. I dont know how to add fetch xml and also i dont know, Should I create js on load of form or export solution add filter to fetchxml then import it to crm? 回答1: Have you tried creating a Custom View where you can set up this filter

show the sub grid with filtering two or three fields that all are look up in crm 365

*爱你&永不变心* 提交于 2019-12-02 11:46:24
I have two custom entity. I want to show the sub grid with filtering two or three fields that all are look up. In SQL way I want to select * from table where field 1 = *** or field 2=*** or filed 3 =*** But in CRM it's not possible you can select only one field. I dont know how to add fetch xml and also i dont know, Should I create js on load of form or export solution add filter to fetchxml then import it to crm? Have you tried creating a Custom View where you can set up this filter criteria and use this view on the Subgrid Here you have the details: https://crmbook.powerobjects.com/system