dynamics-crm

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

Loading Data from Dynamics CRM to SQL Server

好久不见. 提交于 2020-08-09 08:01:08
问题 Not able to get optionset string from Dynamics CRM to SQL Server using Azure data factory. I am using Azure data factory to move data from Dynamics CRM to SQL DB. I used fetchXML query to get the data from source (CRM). I am able to get normal string and guid type values without any issue. But the optionset field from CRM is coming as Int32 type (ie, I am getting the value of optionset, not the string). How can I fix this issue? 回答1: Probably you are using this approach to get the fetchxml

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

Microsoft Dynamics 365 SDK Core Assemblies .NET Core Porting Error

狂风中的少年 提交于 2020-07-05 06:07:07
问题 When trying to use Microsoft Dynamics 365 SDK Core Assemblies in a .NET Core 2.0 project, the following error occurs at runtime simply by using Microsoft.Xrm.Sdk : TypeLoadException: Could not load type 'System.ServiceModel.Description.MetadataConversionError' from assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. It looks like the Core Assemblies (Microsoft.Xrm.Sdk.Client) may simply not be compatible with anything other than ~net4x. Is there

Dynamics CRM SDK : Batch update specific fields in entity

纵饮孤独 提交于 2020-07-05 04:51:08
问题 I am new to Dynamics CRM development. I want to batch update certain fields in Entity using Batch update method in Dynamics CRM Online. I am using below code for performing batch update: var multipleRequest = new ExecuteMultipleRequest() { Settings = new ExecuteMultipleSettings() { ContinueOnError = false, ReturnResponses = true }, Requests = new OrganizationRequestCollection() }; foreach (var entity in entities.Entities) { UpdateRequest updateRequest = new UpdateRequest { Target = entity };

Dynamics crm remove the repeated data while fetching via api

前提是你 提交于 2020-06-17 15:52:30
问题 Trying to retrieve all state under one particular country. URL: api/data/v9.1/leadaddresses?$select=stateorprovince&$filter=stateorprovince ne null and country eq 'US'&$count=true&$orderby=stateorprovince Problem here is it returns data like this "value": [ { "@odata.etag": "W/"166729382"", "stateorprovince": "AK", "leadaddressid": "691de670-aa45-426b-8fee-00b3a7f7e469" }, { "@odata.etag": "W/"166729369"", "stateorprovince": "AK", "leadaddressid": "12db5897-dc53-44ae-b4aa-03c5486ad6ac" }, { "

Dynamics crm remove the repeated data while fetching via api

心已入冬 提交于 2020-06-17 15:51:08
问题 Trying to retrieve all state under one particular country. URL: api/data/v9.1/leadaddresses?$select=stateorprovince&$filter=stateorprovince ne null and country eq 'US'&$count=true&$orderby=stateorprovince Problem here is it returns data like this "value": [ { "@odata.etag": "W/"166729382"", "stateorprovince": "AK", "leadaddressid": "691de670-aa45-426b-8fee-00b3a7f7e469" }, { "@odata.etag": "W/"166729369"", "stateorprovince": "AK", "leadaddressid": "12db5897-dc53-44ae-b4aa-03c5486ad6ac" }, { "

FetchXML Understanding Distinct

左心房为你撑大大i 提交于 2020-06-16 19:00:20
问题 I am learning FetchXML and am currently new to it. I tried looking at the documentation located here but I did not find it very helpful What does this line mean: <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> What does the mapping="logical" part mean? What does the distinct="true" part mean? 回答1: As per FetchXML schema we have two enum values namely internal & logical for mapping attribute. We have to use mapping="logical" in our queries & internal may be