dynamics-crm

CRM 2015 SDK : The deserializer has no knowledge of any type that maps to this name

为君一笑 提交于 2019-12-22 10:54:44
问题 I am currently working with CRM 2015 SDK. I am simply trying to update a value in C# with this SDK. But for some reasons that I try to figure out, there is a trouble when I save my context . There is the code : foreach (KeyValuePair<string, Account> account in dicAccount) { //Calcul of url/login/date/key/customer values string generatedUrl = Utilities.GenerateURL(url, login, date, key, customer); account.Value.new_Link = generatedUrl; if (!context.IsAttached(account.Value)) { context.Attach

How do I connect a server service to Dynamics Online

自作多情 提交于 2019-12-22 09:48:08
问题 I am modifying an internal management application to connect to our online hosted Dynamics 2016 instance. Following some online tutorials, I have been using an OrganizationServiceProxy out of Microsoft.Xrm.Sdk.Client from the SDK. This seems to need a username and password to connect, which works fine, but I would like to connect in some way that doesn't require a particular user's account details. I don't think the OAuth examples I've seen are suitable, as there is no UI, and no actual

How to get current user record in CRM plugin?

二次信任 提交于 2019-12-22 09:05:20
问题 I am developing a plugin . Whenever a plugin gets invoked, I need to get current user information ? Is there any way to retrieve that? 回答1: The information is available in the PluginExecutionContext. The code below is from the Execute method your plugin must implement. public void Execute(IServiceProvider serviceProvider) { IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext)); IOrganizationServiceFactory serviceFactory =

CRM Advanced Find all the icons in wrong place

谁都会走 提交于 2019-12-22 05:19:23
问题 I've just loaded up the advanced find and I cant click on half the icons/drop downs as they are all in the wrong place. It works fine on other servers and other machines. It appears as if its a CSS problem. Any Ideas 回答1: Several users reported this issue, the cause is not clear yet, however these are the suggested steps: 1) Try with another browser 2) Clean the browser cache 3) if CRM site is inside the Internet Explorer compatibility mode list remove it 4) if CRM site is not inside the

Invalid CRM 2011 LINQ Query: “Invalid 'where' condition. An entity member is invoking an invalid property or method.”

喜欢而已 提交于 2019-12-22 04:53:10
问题 I am trying to execute this query to retrieve Audit items for specific entity types public List<Audit> GetAuditChangesSince(DateTime since, string entityType) { return (from a in OrgContext.CreateQuery<Audit>() where a.ObjectId != null && a.ObjectId.LogicalName == entityType && a.CreatedOn > since select a).ToList(); } The a.ObjectId != null && a.ObjectId.LogicalName == entityType && clause is causing problems. I know .Equals() may cause problems (hence ==) and there are these limitations to

Authenticating with on-premise (IFD) CRM using NTLM authentication from Web App (Express.js)

你说的曾经没有我的故事 提交于 2019-12-22 01:10:47
问题 I'm asking this question on the back of a previous question I raised, as the scope of the question has changed somewhat but that might be worth reading first for background info. 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

Convert Entity Collection to Ilist where Entity Collection does not implement IEnumerable

元气小坏坏 提交于 2019-12-22 00:16:58
问题 I have a Entity Collection Like this: EntityCollection users; I want to convert it to a Ilist like this: systemUsers = new List<CrmSdkTypeProxy.SystemUser>(); where CrmSdkTypeProxy.SystemUser is a type of Entity . However, my Entity Collection is derived from a dll of Microsoft.Xrm.Sdk which does not implement IEnumerable . I am using mscrm 2011 specific dlls . Any idea on how I create a list like this: .List<CrmSdkTypeProxy.SystemUser> ? 回答1: from what I gather from http://msdn.microsoft.com

CRM do not support direct update of Entity Reference properties, Use Navigation properties instead

北城以北 提交于 2019-12-21 10:47:03
问题 I am using Ms Dynamic Web Api with Simple OData. I need to add new record for link entities. I am using the below code snip and refer the documentation on https://github.com/object/Simple.OData.Client/wiki/Adding-entries-with-links var newContactData = await _oDataClient .For<Contacts>() .Set(new { firstname = contactData.ContatDetails.firstname, lastname = contactData.ContatDetails.lastname, emailaddress1 = contactData.ContatDetails.emailaddress1 }) .InsertEntryAsync(true); var

Can't access Microsoft.Xrm namespace

旧时模样 提交于 2019-12-21 07:02:05
问题 I've downloaded CRM Dynamics SDK and keep it in a local directory. In my code, I'm using EntityCollection (amongst other classes related to Xrm namespace), which means that I need to add using Microsoft.Xrm.Sdk; . The problem is that during compilation I get errors saying that: The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) So, I double check that the reference is made and, very accurately, I see that microsoft.xrm.sdk

Unauthorized HTTP request to Dynamics CRM Web API via Angular 2 using ADAL

浪尽此生 提交于 2019-12-21 05:13:09
问题 I'm trying to create an application using Angular that can connect to Dynamics CRM via the Web API. These are the steps I have followed: 1. Registered a native application in Azure, granted the required delegated permissions and updated the manifest to allow implicit flow. 2. Created an Application User in CRM, setting its Application ID equal to the Client ID of my Azure registered application. Assigned my Application User a custom Security Role. 3. Cloned many Angular 2 quickstart Git