microsoft-dynamics

How to get Process Finish Button event in Dynamics CRM?

跟風遠走 提交于 2021-02-19 02:25:08
问题 I am using Dynamics 365 online instance to integrate sales process. I have one condition where I need to change the Probability field value to 100 when user clicks on Finish button in Close Process Stage. I have done some research and found that ( OnProcessStatusChange event ) can help to get business process flow status change (statuses: Active, Finished , or Aborted) Ref Link: OnProcessStatusChangeEvent I have checked this by adding this to form OnLoad event like below, but nothing happens.

Reload Form on reload/refresh of subgrid in Dynamics 365 CRM Unified Interface

♀尐吖头ヾ 提交于 2021-02-11 16:49:22
问题 I have a scenario where in Orders Form there is a Invoice Schedule Sub-grid . I need to Refresh/Reload the Main Form when the Invoice Schedule Sub-grid is reloaded on Deactivating a particular record in the Sub-grid. P.S: This scenario is for Dynamics 365 CRM Unified Interface (UCI). I have tried all the three Sub-grid events but does not help in this scenario. 回答1: You have to attach a custom event handler to deal this. Read more var globalFormContext; function myFormOnload(executionContext)

Reload Form on reload/refresh of subgrid in Dynamics 365 CRM Unified Interface

有些话、适合烂在心里 提交于 2021-02-11 16:49:06
问题 I have a scenario where in Orders Form there is a Invoice Schedule Sub-grid . I need to Refresh/Reload the Main Form when the Invoice Schedule Sub-grid is reloaded on Deactivating a particular record in the Sub-grid. P.S: This scenario is for Dynamics 365 CRM Unified Interface (UCI). I have tried all the three Sub-grid events but does not help in this scenario. 回答1: You have to attach a custom event handler to deal this. Read more var globalFormContext; function myFormOnload(executionContext)

How to set value of lookup field in a new entity in CRM using C#

我们两清 提交于 2021-02-11 14:55:09
问题 I am trying to update a Lookup field in CRM via the following code. Create a new entity Person Person contains a lookup field HospitalOfBirth from another entity Hospital Value to be inserted: hospitalName I referenced from online articles and drafted my code below. Entity Person = new Entity("Person"); //do I set the value of the field by the following? Person.Attributes[Person.HospitalOfBirth] = hospitalName; Person.Attributes[Person.HospitalOfBirth] = new EntityReference("Hospital", Person

Dynamics HttpClient call never succeeds

爱⌒轻易说出口 提交于 2021-02-11 13:36:34
问题 I am developing a business central control add in where I need to call external web services. For this, I am using the HttpClient class in AL but no call succeeds. if not Client.Get('https://google.com', Response) then begin responseText := Response.ReasonPhrase(); Message(responseText); Error('didnt work'); end; It takes about 2.5-3 Minutes to finish the call. ResponseText is ' OK ' and HttpStatusCode is ' 200 ' but the call always fails and goes into error handling block. Reading the

Unable to connect to Microsoft Dynamics CRM with PHP and Curl

醉酒当歌 提交于 2021-02-08 05:09:41
问题 I am trying to use PHP and CURL to connect to Microsoft Dynamics API so I can read client data from the CRM. The API guide can be found here: https://msdn.microsoft.com/en-gb/library/mt593051.aspx I've been into the Azure portal and set up a new application, and it gives me the credentials to use (client id, secret, etc.) and the url end points. Using these credentials I am able to successfully connect to the CRM and retrieve a bearer access token, but I am unable to get any further. When I

Unable to connect to Microsoft Dynamics CRM with PHP and Curl

送分小仙女□ 提交于 2021-02-08 05:06:32
问题 I am trying to use PHP and CURL to connect to Microsoft Dynamics API so I can read client data from the CRM. The API guide can be found here: https://msdn.microsoft.com/en-gb/library/mt593051.aspx I've been into the Azure portal and set up a new application, and it gives me the credentials to use (client id, secret, etc.) and the url end points. Using these credentials I am able to successfully connect to the CRM and retrieve a bearer access token, but I am unable to get any further. When I

Dynamics CRM 2011 Plugin Retrieve and Retrieve Multiple

寵の児 提交于 2021-02-07 20:30:56
问题 I'm looking for some working examples of retrieve message and retrieve multiple message plugin (Early binding). I've failed to find any successfully examples looking on line. I've checked the SDK, and various forums. Links or working examples would be greatly appreciated! What I'm trying to accomplish is the intercept and update of specific fields before presentation on the UI. I'm able to partially accomplish this via javascript which is the preferred method, but unfortunately the

Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory' in CRM Plugin

牧云@^-^@ 提交于 2021-01-29 07:44:23
问题 I am developing a plugin that uses ADAL nuget package. My plugin assembly throws an exception when I execute due to missing Microsoft.IdentityModel.Clients.ActiveDirectory dll. The assembly is referencing and merged properly in the merged dll and this is what I see in ILSpy tool: Here is the list of references in my plugin assembly: Any ideas how to fix this issue? After i tried multiple tools to merge my dlls using ILMerge and ILRepack i am facing the same issue. How can i find out Clients

Dynamics 365 - Get the value for selected option from Global Option Set

倖福魔咒の 提交于 2021-01-28 05:23:25
问题 I'm trying to find a way to get a value for my field which is based on a GlobalOptionSet. I'm managing to pull back data from my endpoint https://TEST.test.dynamics.com/api/data/v9.1/projects which is returning my list of projects. some of the fields on this dataset just show as GUID's which I've managed to expand into and get their values. However, some of the fields returned are showing just numbers like 866110000 which I believe is an option in a GlobalOptionSet. I know I can get the