dynamics-crm-2013

CRM 2013 Dynamic OptionSet issue

主宰稳场 提交于 2019-12-12 10:23:38
问题 I am using CRM 2013 On premise, and in it there is an attribute which has an option set (not global) having text and value as "Dummy Entry" "0". Default Value is unassigned. My code is to add options in this option set with some business logic. So I can add new options in it via Javascript. When I am adding Options in it via Javascript, it is not allowing me to change the value lets say Option1 val1 Option2 val1 is added then it wont allow me to select these values and every-time selecting

How to access controls from a console

亡梦爱人 提交于 2019-12-12 08:15:23
问题 I tried to execute the following command from the console. var subject = Xrm.Page.ui.controls.get("subject"); That's the exact syntax I'm using in the web resource that I'm plugging in to CRM. However, I only got an error message saying that "unable to get property 'controls' of undefined or null reference". I do understand the message. What I want to know is two-fold. What syntax will work from the console ( F12 ) to refer to the stuff on the screen? Why doesn't it work the way I did? Where

Is there any Common Way for updating status using c# in Dynamics CRM

我的未来我决定 提交于 2019-12-12 05:39:54
问题 I want to update the status using single common way in c#. For now I know about SetStateRequest but it did not change its status to any of status. e.g. If i want to change status to fulfilled for order or canceled for order then it requires FulfillSalesOrderRequest and CancelSalesOrderRequest .Like wise different different class for quote's status and others. So I want some common way for change status.If is there any solution please suggest me. 回答1: If you are on CRM 2015 Update 1 or later,

Why Pre-Operation is used during Update a Plug-In

天大地大妈咪最大 提交于 2019-12-12 05:17:35
问题 In Microsoft Dynamics CRM Plug-in why at Event Pipeline stage of execution is used Pre-Operation for "Update" message while adding a step in a plug-In. could anyone elaborate this? 回答1: The plugin pipeline includes the following stages; pre-validation, pre-operation, and post-operation. Apart from a couple of exceptions these stages are always available. So for the update message the pre-operation is there because that is how the product is designed to work. In an update message the pre

Web Service Authentication to Online Federated Dynamics CRM 2013 from Java

谁说我不能喝 提交于 2019-12-12 04:40:07
问题 I am working on a Java program to integrate via web services with a Microsoft Dynamics CRM 2013 online version. Authentication is federated with a local IDP, not through Windows Live. I am having problems finding documentation on how to complete this. All of the non-.NET environment documentation I have seen does not show how to complete the integration in a Federated set-up. Is it possible to consume Dynamics CRM web services in this authentication configuration from Java? If so, any

Execute External Console Application From Dynamics CRM

こ雲淡風輕ζ 提交于 2019-12-12 03:48:34
问题 I need to execute a console application from Dynamics CRM. What is the best way of doing that please? The app should execute on daily basis. Thanks. 回答1: If you just need to run a console application on a schedule then I've found Windows Task Scheduler to be excellent. Here's a link to MSDN: http://technet.microsoft.com/en-us/library/cc766428.aspx You can also use SQL Server Agent to run a console application but it requires a little more setup 来源: https://stackoverflow.com/questions/26431521

CRM Dynamics 2013 SDK Update Current Accounts With 2 Values

陌路散爱 提交于 2019-12-12 02:49:23
问题 I have a scenario in CRM where I need to update existing accounts with their Vat and Registration number. There is well over 30 thousand accounts in the system. I am trying to update using the CRM SDK API but I am battling to figure out how to perform the actual update. The vat number and reg have been provided to me in a spreadsheet with their corresponding number, please note that the accounts are already in CRM so I just need to update the correct account with its Vat and Reg number, How

How To Filter 1:N Add Existing Lookup Dynamics CRM 2013?

别说谁变了你拦得住时间么 提交于 2019-12-12 01:44:33
问题 Do you know how can we filter 1:N "Add Existing Lookup" at Dynamics CRM 2013 ? We tried this part, but it doesnt work anymore in CRM 2013: var lookupItems = LookupObjects(null, "multi", gridTypeCode, 0, null, "", null, null, null, null, null, null, viewId, [customView]); 回答1: You should change your LookupObjects function to LookupObjectsWithCallback function: LookupObjectsWithCallback(callbackReference, null, "multi", gridTypeCode, 0, null, "", null, null, null, null, null, null, viewId,

Do you still need to check the parent / child pipelines to determine whether to create ICrmService or CrmService in 2015?

浪尽此生 提交于 2019-12-12 01:28:54
问题 We currently use MS Dynamics CRM V4 and are in the process of upgrading to 2015. I've got the task of updating some of our plugins. 1 of the things I've come across that is a little confusing is whether I still need to do some sort of check on the stage of the pipeline to determine if it's a parent or child. As I understand it the parent and child pipelines have been merged into 1 as of 2011, so how should the following code be altered? public CrmServiceProxy(IPluginExecutionContext context,

How to unable create a new record button from sub grid

爱⌒轻易说出口 提交于 2019-12-11 23:03:47
问题 I want to prevent create a new record from my sub-grid of email entity (it's a custom view/subgrid), I tried to change it using ribbon workbench -> sub-grid ribbon, but I have many views to my Entity. How do I know that I'm working on the right addnew button and not on unwanted subgrid or by mistake deleting the addnew button from all of my sub-grids? 回答1: From ribbon workbench or directly in ribbondiff xml, you can hide the (+) Add New button in all subgrids of that particular entity when