dynamics-crm

How to query an on-premises Dynamics CRM from a Web App (Node/Express)

懵懂的女人 提交于 2019-12-20 17:30:02
问题 Been banging my head against a few walls with this so hoping some CRM/Dynamics experts can give me a hand! I'm trying to programatically obtain data out of our Dynamics CRM instance, using a single set of admin credentials within a Node powered Express app. This Express app is hosted on a separate server outside of our network where CRM is hosted. The app will then request, process and serve CRM data back to any logged in user who has access (controlled by roles/permissions within the app),

Convert EntityReference to Entity

徘徊边缘 提交于 2019-12-20 12:35:43
问题 Does anyone know how can Convert EntityReference to Entity. protected override void Execute(CodeActivityContext executionContext) { [Input("Email")] [ReferenceTarget("email")] public InArgument<Entity> EMail { get; set; } Entity MyEmail = EMail.Get<Entity>(executionContext); This give me an error. Cannot convert this. 回答1: The shortest answer to your questions is to query the database for the entity that's pointed out (referred to) by the entity reference. I've always viewed entity references

SetParameter(“fetchXml”, FetchXml) doesn't support in crm 2016 online

走远了吗. 提交于 2019-12-20 05:13:29
问题 I have this code: function FilterCasesSubgrid() { //var CasesSubgrid = Xrm.Page.getControl("contact").getGrid(); var CasesSubgrid = window.parent.document.getElementById("contact"); if(CasesSubgrid==null){ setTimeout(function () { FilterCasesSubgrid(); }, 2000); //if the grid hasn’t loaded run this again when it has return; } var fetchXml ="<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"+ "<entity name='contact'>"+ "<attribute name='fullname' />"+ "

Error AADSTS90002 on aquire authentication token for Dynamics 365

不问归期 提交于 2019-12-20 04:24:34
问题 I am encountering the following error when attempting to authenticate with Dynamics 365 from my .Net client: AADSTS90002: Tenant authorize not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator. Here is the code I am currently using: AuthenticationParameters authenticationParameters = AuthenticationParameters.CreateFromResourceUrlAsync(new Uri("https://dev-aec-ssp.api.crm6.dynamics.com/api/data/v9.1/")).Result;

Import data from excel sheet with new columns in CRM 2013 Online

爷,独闯天下 提交于 2019-12-20 04:14:05
问题 I previously imported data from an excel sheet into CRM that had around a dozen columns in it. At that time some of those columns were empty. Now that excel sheet has been updated to include values in those previously empty columns. How do I import only those newly updated columns in excel sheet to update their respective CRM records? Is their a way of importing them without creating duplicates and anyway messing up the records in CRM? 回答1: One to do would be to run an advanced find with the

MS WF state machine workflows and MS CRM Dynamics 4.0

做~自己de王妃 提交于 2019-12-19 17:48:13
问题 MS CRM Dynamics 4.0 incorporates the MS WF engine. The built in designer allows the creation of sequential workflows whos activities have native access to CRM entities. Is it possible to: Create a state machine workflow outside of CRM (i.e. in visual studio) and import it into CRM? Have this workflow access the CRM entities? 回答1: It is NOT possible to create a state machine workflow for use in MSCRM. It is also not supported to create any workflow outside of MSCRM and import it. As a work

Access MS CRM Web Services From External App/Javascript

扶醉桌前 提交于 2019-12-19 10:19:12
问题 Is there any way to call the MS CRM web service from JavaScript from a web page that is NOT a CRM web page (i.e., not in the load or save event in a CRM form, but from a stand alone web page)? A second question: is there any way to call the MS CRM Web Service from VBScript? Ideally I'd like to do this in CRM 2011, but would be happy to have an example from CRM 4.0. I'm thinking I'm going to have to write a wrapper web service to do this but I would rather not go that route unless necessary.

Assign new owner to appointment. “There should be only one owner party for an activity”

折月煮酒 提交于 2019-12-19 08:01:43
问题 I need to change the owner of an appointment record when creating a new appointment. I'm using a plugin for the create message and i've found this code to assign a new owner to the appointment: entity = context.PostEntityImages["PostImage"]; ...... AssignRequest request = new AssignRequest(); //request.RequestName request.Assignee = new EntityReference("systemuser", owners.ToList()[0].Id); request.Target = new EntityReference(Appointment.EntityLogicalName, entity.Id); service.Execute(request)

CRM 2011 Workflow “Invalid Pointer” error

眉间皱痕 提交于 2019-12-19 05:45:02
问题 I have a custom workflow in CRM 2011 which is manually triggered against custom entity records. When a single record is selected for processing, the workflow is always successful. However when selecting more than one record, at least one will fail. The error(s) provided seem to vary from one attempt to the next, even though the same data is being used. Errors I've encountered so far are: ValidateOpen - Encountered disposed CrmDbConnection when it should not be disposed You cannot create a

C# ADAL AcquireTokenAsync() without pop-up box

◇◆丶佛笑我妖孽 提交于 2019-12-19 03:20:54
问题 We are writing a WCF service which has to integrate with Dynamics CRM 2016 Online. I'm trying to authenticate using ADAL, using method AcquireTokenAsync() . Problem is, it displays a pop-up box, prompting the user for credentials. Naturally, our application being a service, this isn't what we want. We've been searching for a way to authenticate without having this pop-up box. There is a class called AuthenticationContextIntegratedAuthExtensions , which is supposed to assist with "username