microsoft-dynamics

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

D365 FO Simple Query for expiring contract

[亡魂溺海] 提交于 2020-01-22 02:01:14
问题 I need to create simple query which will show all contracts which will expire in next 3 months. I know how to do that with SQL, but how to do that in Visual Studio when I create query. I added data source Contract table. Added range. Column where is date about expiring is VALIDTO. So, something to write up in value, or how to do that ? 回答1: Solved with two ranges on VALIDTO column. Used (MonthRange(0,3)) with (Day(0)) formulas. 来源: https://stackoverflow.com/questions/56854909/d365-fo-simple

Getting Useful Error Messages from MS Dynamics CRM Plugins through WCF

梦想与她 提交于 2020-01-15 11:05:31
问题 We have a Silverlight 4 front-end with a WCF Service middle tier, which in turn references CRM 4 web services. When a InvalidPluginExecutionException occurs in our plugins, the best error message I can obtain from the WCF FaultException is a general SoapException message, which really isn't that helpful. Is there a way to get specific error messages from our plugins propogated up to our WCF (and eventually to our Silverlight app). We want to know which Plugins are failing. I posted my answer

Getting Useful Error Messages from MS Dynamics CRM Plugins through WCF

会有一股神秘感。 提交于 2020-01-15 11:05:04
问题 We have a Silverlight 4 front-end with a WCF Service middle tier, which in turn references CRM 4 web services. When a InvalidPluginExecutionException occurs in our plugins, the best error message I can obtain from the WCF FaultException is a general SoapException message, which really isn't that helpful. Is there a way to get specific error messages from our plugins propogated up to our WCF (and eventually to our Silverlight app). We want to know which Plugins are failing. I posted my answer

Dynamics CRM 2011 SDK remove attribute with dependencies

本小妞迷上赌 提交于 2020-01-15 03:32:09
问题 I'm having troubles with removing the attribute of entity which have dependencies from SDK. To remove an attribute I need: RetrieveAttribute RetrieveDependenciesForDeleteRequest DeleteRelationshipRequest and finally DeleteAttributeRequest I would be appreciated for any advise about the plan above or sample code. I couldn't find example at msdn so far. 回答1: So it appears that the RetrieveDependenciesForDeleteRequest is telling you that you have to delete a relationship before you can delete

How to apply custom FetchXML to a Subgrid using JavaScript

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-13 20:48:48
问题 The implementation of applying custom FetchXML to a Subgrid appears to have changed from CRM 2011/13 to Dynamics 365. The change is with respect to GridControl.SetParameter() . I have followed many articles talking about this same issue but nothing is working at the moment on Dynamics 365 Online. Is there any alternative method to achieve the same functionality? In my below code, I am trying to fetch all of the phone call and email activities related to the account and show them on the

How do you find a user's last used printer in SysLastValue

眉间皱痕 提交于 2020-01-13 06:39:10
问题 I've been trying to find where a user's last used printer is stored so that I can clear this usage data (as a few users have an issue where the remembered printer keeps defaulting to the XPS writer, despite us having KB981681 installed & the printer being available; just not defaulted on certain AX forms). I know this data's somewhere in the Usage Data, which I can browse via AX: Microsoft Dynamics AX > Tools > Development Tools > Application Objects > Usage Data AOT > System Documentation >

Nested notExists joins X++ (Dynamics AX3.0)

十年热恋 提交于 2020-01-12 10:52:46
问题 When the following code executes: select sum(qty) from inventTrans index hint TransTypeIdx where inventTrans.ItemId == itemId && inventTrans.TransType == InventTransType::Sales && inventTrans.InventDimId == inventDimId notExists join custTable where custTable.AccountNum == inventTrans.CustVendAC && custTable.CustGroup == custGroupId notExists join salesTable where salesTable.SalesId == inventTrans.TransRefId && salesTable.Extraordinary == NoYes::Yes; The sql generated nests the second

Nested notExists joins X++ (Dynamics AX3.0)

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-12 10:52:14
问题 When the following code executes: select sum(qty) from inventTrans index hint TransTypeIdx where inventTrans.ItemId == itemId && inventTrans.TransType == InventTransType::Sales && inventTrans.InventDimId == inventDimId notExists join custTable where custTable.AccountNum == inventTrans.CustVendAC && custTable.CustGroup == custGroupId notExists join salesTable where salesTable.SalesId == inventTrans.TransRefId && salesTable.Extraordinary == NoYes::Yes; The sql generated nests the second

SQL Server Connection using GPConnNet.dll

不打扰是莪最后的温柔 提交于 2020-01-06 15:53:45
问题 I am attempting to make a connection to a Dynamics GP SQL Server Database using the currently logged in credentials from GP. (for context http://blogs.msdn.com/b/developingfordynamicsgp/archive/2008/10/02/why-does-microsoft-dynamics-gp-encrypt-passwords.aspx) Using the code provided from the documentation of GPConnNet.dll I should be able to get a connection but have been unable to do so for non-sa users, sa and dynsa work fine. I am receiving a login failed sql server error.