dynamics-crm

clearoption for optionset in crm business process flow

让人想犯罪 __ 提交于 2020-01-25 03:09:06
问题 I have a business process flow In one of its steps I have added an option set(sub category) I am trying to clear the options in the optionset using the below code Xrm.Page.getControl("new_subcategory").removeOption(100000005) Xrm.Page.getControl("new_subcategory").clearOptions() This removes the options for the optionset that is inside the form, but it is not removing for the same option set that is in the step of business process flow 回答1: You need to added header_process_ to the id. So: Xrm

Cannot connect to remote MS Dynamics CRM Fetch XML datasource from SSRS

泪湿孤枕 提交于 2020-01-25 00:12:27
问题 I have Office 365 with Microsoft Dynamics CRM which contains business data and I have SQL Server Reporting Services on a stand-alone server that serves as a report container and my ASP.NET websites can execute these reports and people can deploy reports there. In Visual Studio I've created Fetch XML datasource for my report supplying CRM server credentials and report runs smoothly, no problems at all. When I deploy it on SSRS server I can't execute it with the same credentials, it just throws

Dynamics 365 CRM Online - Use a Field that is NOT in collection (Hasn't been updated)

我的未来我决定 提交于 2020-01-24 20:53:45
问题 The overall question is: How do I access entity variables that are not in my collection (haven't been updated) in a plugin for D365 CRM? I have been wrestling with this for quite a while, and now, I turn to you, the forum Gods, for help in understanding what's happening here. I have customizations on the Work Order entity within D365 CRM (v9.0). Essentially, whenever one of three fields is updated, I need to perform the same logic each time. For whatever reason, the plugin will ONLY work when

How to “Pass configuration data to your plug-in” and what's the purpose of the same ? Any real time scenario with example?

一世执手 提交于 2020-01-24 15:03:30
问题 What's the use of passing configuration data to plugin and how to do this ? https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/write-plug-in Pass configuration data to your plug-in When you register a plug-in you have the ability to pass configuration data to it. Configuration data allows you to define how a specific instance of a registered plug-in should behave. This information is passed as string data to parameters in the constructor of your class. There are two

System.OutOfMemoryException when merging Newtonsoft.Json

左心房为你撑大大i 提交于 2020-01-24 04:35:12
问题 I am creating a plugin to call a webservice. I need to serialize and deserialize the Json object. So, I need Newtonsoft.Json. I am trying to merge the dll from NewtonSoft.Json and my application dll using ILMerge.MSBuild.Task and ILMerge in Visual Studio 2015. I get the error below: I looked for solution in internet but could not find any solution. 回答1: For ILMerge in VisualStudio Use the necessary dlls from NuGet Package Manager Only I was using the MSBuild.ILMerge.Task 1.0.5 and latest

CRM2011 Workflow: What happens if the field which is used in the condition of the workflow is updated after the workflow has started?

冷暖自知 提交于 2020-01-24 02:50:32
问题 Example: Lets say I have a workflow which send an email 2 days before warranty enddate. This workflow is triggered on the "Created" of a entity. step 1: wait condition - process timeout < (warrantyendate - 2) after wait: send email. So when the record is created, the workflow is started. But what happens when the user goes back and updates the warranty enddate. Does the workflow check the updated warranty enddate or does it still use the enddate entered when it was triggered (i.e the initial

How to Get a Dynamics 365CE Personal Development Environment?

 ̄綄美尐妖づ 提交于 2020-01-23 03:32:46
问题 I'm learning Microsoft Dynamics 365CE online and I'd like a personal environment to try out development on. Is there a way to do this without paying for a full licenced environment? I'm not going to use this for production, only personal education. 回答1: You can get a free 30 days trial & use it for personal development/learning purpose in full fledged CRM online environment. Proceed to the Dynamics 365 trial sign-up page & signup. Step by step instructions. 回答2: USE INCOGNITO MODE ONLY!!! (Or

Can you write a single FetchXML query to get 1:many relationship?

萝らか妹 提交于 2020-01-21 15:31:07
问题 Is it possible to write a single FetchXML query that gets a root entity and multiple children? All I've been able to do is 1:1. 回答1: No, it is not possible. 回答2: James Wood is correct. Fetch XML is recursive so by using the link entity you can get the information you want. For example, the following is valid: <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> <entity name="account"> <attribute name="name" /> <attribute name="primarycontactid" /> <attribute

How to hide a vanilla button according to form state

亡梦爱人 提交于 2020-01-21 12:24:07
问题 I am trying to hide my SAVE vanilla button according to form state. when the form state != create the vanilla button should not display. I tried different things but nothing works: I create a function in js that returns true if form is create state function isHideState(){ formstate = Xrm.Page.ui.getFormType(); if(formstate == formType.create){ return true;} else{ return false;} } I added a disply rule and connected it to my command that relevant to the js function : my rule is : FormStateRule

Cannot access header or business process flow controls on a CRM form

醉酒当歌 提交于 2020-01-17 06:29:08
问题 For some strange reason I cannot access any control on the header or the business process flow section. I try to access them in the debugging tool after the page has loaded but I get null all the time. This is what I have/have done so far: CRM 2016 on-premise I have administrator rights I use Xrm.Page.getControl("header_CONTROL NAME") for header controls I use Xrm.Page.getControl("header_process_CONTROL NAME") for BPF controls I have checked the control names and they are correct Any help is