microsoft-dynamics

Is there a way how to hide quick find on top of grid?

浪子不回头ぞ 提交于 2020-12-07 04:38:30
问题 Is there a way to hide quick find search box on top of grid - either programmatically or via ribbon / customizations ? Btw, it should be in supported/able manner (no direct DOM manipulations). 回答1: If anyone is interested - it is possible; it involves a shipping of your own custom grid control. Then in control manifest make sure to specify cds-data-set-options="displayViewSelector:false;displayQuickFind:false" <?xml version="1.0" encoding="utf-8"?> <manifest> <control namespace="MyControls

Using Xrm.WebApi method in Web Resource opened in a new window

杀马特。学长 韩版系。学妹 提交于 2020-08-24 06:20:40
问题 I have opened an HTML web resource in a new window using: Xrm.Navigation.openWebResource(webResource, windowOptions, data); This is an HTML web resource and it is loading the ClientObject in the head <script type="text/javascript" src="../../../ClientGlobalContext.js.aspx" ></script> then I have some JavaScript that is trying to retrieve a Contact var contactId = "8553DA63-11C9-E711-A824-000D3AE0CB84"; var promise = Xrm.WebApi.retrieveRecord("contact", contactId, "$select=contactid,firstname

Modifying the Command Bar for the Unified Client Interface in Dynamics 365

我与影子孤独终老i 提交于 2020-07-09 19:23:52
问题 In the new Unified Client Interface for Dynamics 365 I am trying to hide some buttons. Specifically the "Show Chart" and "Appointment" buttons. I am using the Ribbon Workbench 2016. So far I've searched but I don't see any other tool for modifying the command bar. I create a solution with my entity with metadata only. I then open the solution in Ribbon Workbench 2016. I cannot find these buttons. I've tried using the tabs "Command Bar", "Ribbon", and "Tablet" and cannot see these buttons. My

Modifying the Command Bar for the Unified Client Interface in Dynamics 365

て烟熏妆下的殇ゞ 提交于 2020-07-09 19:23:18
问题 In the new Unified Client Interface for Dynamics 365 I am trying to hide some buttons. Specifically the "Show Chart" and "Appointment" buttons. I am using the Ribbon Workbench 2016. So far I've searched but I don't see any other tool for modifying the command bar. I create a solution with my entity with metadata only. I then open the solution in Ribbon Workbench 2016. I cannot find these buttons. I've tried using the tabs "Command Bar", "Ribbon", and "Tablet" and cannot see these buttons. My

InvalidCastException while casting to OrganizationServiceContext

情到浓时终转凉″ 提交于 2020-06-28 03:42:27
问题 I have a early bound class generated by CrmSvcUtil: public partial class CustomerCrmServiceContext : Microsoft.Xrm.Sdk.Client.OrganizationServiceContext { ... ... } Then I have a class like this (short version): public abstract class PluginClass<T, C> : PluginClassBase<T> where T : Entity where C : OrganizationServiceContext { protected new C ServiceContext; protected PluginClass(IOrganizationService service, ITracingService tracer) : base(service, tracer) { ServiceContext = (C)base

JavaScript triggered twice in Form Onchage

心已入冬 提交于 2020-06-01 05:07:46
问题 I use Javascript to trigger a Flow when I want to change the state. Everything worked fine but the JavaScript function triggered two times when I change the state my record. i think the Problem is something with the save. storno=function (executionContext) { var functionName = "storno"; var formContext = executionContext.getFormContext(); if(formContext.getAttribute("statecode").getValue() == 3) { //try{ var data= {"id": ""}; data.id = formContext.data.entity.getId(); var requestUrl = "https:

hiding row in dynamics 365 template table if record is empty

只谈情不闲聊 提交于 2020-05-17 07:46:08
问题 I created a Word Dynamics 365 template for the Quote entity, as shown in the photo below. i'm trying to hide the entire tax field based on the following condition: if tax is empty then hide the entire tax row, meaning the heading and the value. And display it if it has a value. Is this possible in word? 来源: https://stackoverflow.com/questions/61759261/hiding-row-in-dynamics-365-template-table-if-record-is-empty

Add New Opportunity from Account subgrid auto-fills every single Account lookup on Opportunity

孤者浪人 提交于 2020-05-17 07:06:22
问题 Title basically sums it up. I have an Account screen, with a sub-grid of Opportunities (by the "parentaccountid" field of Opportunity). When I click + Add New on that Opportunity grid, it autofills parentaccountid on the new record form. That's normal. BUT I also have 5 other Lookups to Account on Opportunity, with different/specific meanings. What's weird is that it's setting ALL of those Lookups to the Account record I started at (Account record that had the Opportunity subgrid where I

Find picklist values in Dynamics via the Web API

穿精又带淫゛_ 提交于 2020-05-09 05:17:10
问题 I'm trying to determine how I can find the integer values for picklist fields in Dynamics via the web api. I can access the basic metadata by using: GET https://[COMPANY].api.crm3.dynamics.com/api/data/v9.0//EntityDefinitions(LogicalName='lead')/Attributes/ but for picklist values I don't see the mapping of the integer value to the displayed string. Is there a table that holds all of this or a way to expand this information on the above call? 回答1: You can use this to retrieve. https://