dynamics-365

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

Forbidden to Call method on Dynamics 365 AX via PHP Curl

╄→гoц情女王★ 提交于 2020-01-16 18:04:08
问题 I am trying to call methods from dynamics SOAP through WSDL via PHP curl. I get this error from both my webapp and SOAPUI. What could be the problem? It works fine when accessed from a .NET testing program with same credentials. Just facing problems from PHP side saying Forbidden with 1317 code. The specified account does not exist I've been trying to call the method and faced different issues last issue I faced is this one. I thought maybe user agent I changed it I used SOAPUI. same thing.

Microsoft Dynamics CRM 365 calling an action via JavaScript asynchronously

旧街凉风 提交于 2020-01-06 06:31:51
问题 Is there a way to call an action via javascript without the use of third party scripts? I found this https://github.com/PaulNieuwelaar/processjs However, I cannot use third party libraries. UPDATE: Here is some sample code that demonstrates an asynchronous call to an action via JavaScript. A important point to remember is to make the last parameter of the open method of the request to true . req.open(consts.method.post, oDataEndPoint, true); // plugin public class RunAsync : CodeActivity {

Connect to Dynamics 365 Customer Engagement web services using OAuth

元气小坏坏 提交于 2020-01-06 01:22:51
问题 I am trying to connect to dynamics 365 by using the reference given in the link below https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/connect-customer-engagement-web-services-using-oauth After User authentication at the below code, control goes to catch block saying "The request body must contain the following parameter: 'client_secret or client_assertion'" AuthenticationResult result = authContext.AcquireToken(resource, clientId, new Uri(redirectUrl)); I understand

How to add/update files in git repository from Azure DevOps Pipeline Dynamics 365 CE

落爺英雄遲暮 提交于 2020-01-05 05:36:07
问题 Short Version When a build pipeline is triggered, one of the build pipeline task will get the latest files and it has to be added/updated in the git repository of current running pipeline. I tried to do it by using command line task but its failing as not git repository fatal: not a git repository (or any of the parent directories): .git Long Version I m tried to achieve solution pack and unpack process for dynamics 365 instance. So the build pipeline have the following tasks Export solution

Dynamics 365 V9 web resource get context

时光毁灭记忆、已成空白 提交于 2019-12-25 03:27:50
问题 I used this article to open a popup window when clicking on a button in the Lead form. In the onclick event of a button in this popup window, I want to set the value of a field in the parent form. How can I do this in V9, since xrm.page is deprecated? I would like to know the equivalent of window.parent.Xrm.Page.getAttribute("subject") The line above has a value of null in the lead form. EDIT: in the link posted by Arun in the comment down here, it is written that "although Xrm.Page is

How to share record in CRM 365

烂漫一生 提交于 2019-12-24 20:30:25
问题 I want to share my record when several condition is fulfilled, can I do that with plugin? I have request transfer record I want to share, so when request transfer status is submited I will share the record to user that I get from warehouse in my request transfer field. Can I do that with plugin? if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity) { if(context.MessageName.ToUpper() == "UPDATE") { int requestStatus = transferImage.GetAttributeValue

How to add a contact to Dynamics CRM 365 with JavaScript

守給你的承諾、 提交于 2019-12-24 18:29:21
问题 It seems that Microsoft Dynamics CRM Web API supports OData and it supports adding new entities e.g. contacts using JavaScript. I tried accessing the API with the following code, but I have two problems. One is cross-origin resource sharing which does not allow my script to execute and the other is that I get access-denied error. var req = new XMLHttpRequest() req.open("POST",encodeURI(clientURL + "/api/data/v8.1/accounts"), true); req.setRequestHeader("Accept", "application/json"); req

MS Dynamics : Generate Refresh Token for OAuth

北战南征 提交于 2019-12-24 17:43:30
问题 I am using OData api of MS Dynamics. Here we are doing authentication using oauth I am taking reference from Ref : https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/developer-guide?view=dynamics-ce-odata-9 https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/connect-customer-engagement-web-services-using-oauth I am using Web Api so we followed below reference. https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/oauth-cross

Trying to associate a dynamics portal user with a dynamics entity record through the portal

情到浓时终转凉″ 提交于 2019-12-24 11:44:52
问题 So I have a Dynamics 365 solution with a portal. I have created a custom entity to hold records relating to events. What I need to do is provide a way for users to log into the portal and register their interest for these events i.e associate their contact record with the relevant event record. I have seen that in CRM there is the option to associate the current user to an event when they create one through an insert entity form in the portal, but I can't figure out how to do it from a read