dynamics-crm-online

How to setup an MVC website to use the same SSO as CRM Online, so that it can be IFramed?

℡╲_俬逩灬. 提交于 2019-12-22 10:26:38
问题 Currently using CRM Online w/ a Single Sign On for AD Authentication. I need to create an Asp.Net MVC site that I iFrame into CRM, but I want it to utilize the same SSO so if the user is "signed into" CRM, the iFrame'd page will utilize the same credentials, and not require the user to sign in. How do I set this up? 回答1: You may find the following article useful. Implement single sign-on from an ASPX webpage or IFRAME. The typical use of this capability is to write a webpage that is displayed

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 =

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;

CRM 2011: Getting entity with Javascript

不打扰是莪最后的温柔 提交于 2019-12-18 10:29:31
问题 I am working on some CRM 2011 Online customisations and I need to get an entity using javascript. The entity I need will be based on the ID value of another field (a Contact entity) - this Contact ID I can get fine. The entity I want is a custom entity. There may be multiple matches based on the Contact ID so I just want to get the first one in the list (order not important) So far I have looked into a few ways to do this... OData - I couldn't find enough examples on this as to what query

Connecting to CRM Online through CRM 365 Plugin

眉间皱痕 提交于 2019-12-14 04:23:38
问题 I need to connect and retrieve records in CRM Online through CRM 365 plugin. I have tried simplified connection using xrm.tooling.dll but unfortunately it says Could not load file or assembly 'microsoft.xrm.tooling.connector and when i used ClientCredential the error says Metadata contain refereces that cannot be resolved . Strangely, i tried both method with console applcation and it's work prefectly. Just wanna knows what i miss in this case ? Do i need special requirement when i want to

Add document sharepoint using web service Microsoft Dynamics CRM

偶尔善良 提交于 2019-12-13 09:46:50
问题 I have an account entity in my Microsoft Dynamics CRM and the every account I have folder in Sharepoint which contains documents of this account I want to create app on c# using Web Services CRM IOrganizationService to Add Documents in SharePoint. it's possible ? Please any links to do that. I need to help. thanks in advance 回答1: from your Question what is understood is that you have setup SharePoint in CRM Document Management System . You must have enabled Document Location for Accounts in

“Created By” field in each record in Custom entity is showing “system” for each user

此生再无相见时 提交于 2019-12-13 05:35:14
问题 I am working on a custom entity on dynamic 365. This entity is manipulated on Dynamic 365 Portal using web forms. Whenever I am creating a record in the entity, it is showing "System" in out of the box "Created By"column. Can anybody tell me what is the reason behind it? 回答1: As explained above, the owner of a record in CRM is a lookup field to systemuser entity. The portal user is actually a contact , therefor can not be assigned as record owner. 回答2: Owner, createdby, modifiedby = CRM Login

Azure function error: Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=7.0.0.0'?

谁说我不能喝 提交于 2019-12-13 03:34:57
问题 I m doing a azure function and testing it locally where it will add some data to Dyanmcis CRM. When I run function it throw this error: Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Please note my code uses Microsoft.Xrm.Client(version 7) and it has Microsoft.Xrm.Sdk (version 8.1.0.235). Please help. 回答1: The problem is due to the missing assembly

Dynamics CRM: Currency field on the contract is locked (disabled) and cannot be unlocked

瘦欲@ 提交于 2019-12-13 02:18:41
问题 Microsoft Dynamics 365 Version 1612 (8.2.2.1862) (DB 8.2.2.1862) online I want to be able to set the Currency field on the Contract. However, on the main Contract form the field is locked and cannot be unlocked. In the form editor the field is not disabled but the padlock appears next to it. Running Xrm.Page.getControl('transactioncurrencyid').setDisabled(false) on the client has no effect for this field, i.e. the field remains locked. I have noticed that there is a Mapping on the contract