dynamics-crm

Get audit history records of any entity record as per CRM view

让人想犯罪 __ 提交于 2019-12-19 02:55:21
问题 I want to display all audit history data as per MS CRM format. I have imported all records from AuditBase table from CRM to another Database server table. I want this table records using SQL query in Dynamics CRM format (as per above image). I have done so far select AB.CreatedOn as [Created On],SUB.FullName [Changed By], Value as Event,ab.AttributeMask [Changed Field], AB.changeData [Old Value],'' [New Value] from Auditbase AB inner join StringMap SM on SM.AttributeValue=AB.Action and SM

Add Dropdown Menu to CRM 2011 ribbon

痴心易碎 提交于 2019-12-18 16:37:23
问题 I 'm new to crm 2011. I've found documentation on how to add a new button to the ribbon. And how to group the buttons. But i need a dropdown menu button in the ribbon. How can i do this? I didn't found any information about this. Thanks! 回答1: This should get you started. If all you need is a static menu you can put the tag inside the Flyout Control and build the menu from there. <FlyoutAnchor Id="Sample.account.form.FlyoutAnchor.Static" Sequence="10" Command="Mscrm.Enabled" Image16by16="/

401- Unauthorized authentication using REST API Dynamics CRM with Azure AD

╄→гoц情女王★ 提交于 2019-12-18 11:28:58
问题 I'm trying to access a Dynamics CRM Online REST API with Azure AD oAuth 2 Authentication. In order to do so I followed these steps: - I've registered a web application and/or web api in Azure - Configured the permissions to Dynamics CRM to have Delegated permissions "Access CRM Online as organization user" - And created a Key with a 1 year expiration and kept the Client ID generated. After the web app was configured on Azure I have created a Console application in .NET/C# that uses ADAL to

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

Create annotation to a contact entity in Microsoft Dynamics CRM by API

北战南征 提交于 2019-12-17 19:57:42
问题 This question is related to Microsoft Dynamics CRM 2015, that I'm calling through API. I create contact entity: POST [organization URI]/api/data/contacts Content-Type: application/json; charset=utf-8 Accept: application/json { "emailaddress1": "myemail@example.com", } It works, I see new record, after I log into the panel. And I can call it through the API: [organization URI]/api/data/contacts(f76e4e7c-ea61-e511-80fd-3863bb342b00) { "@odata.context":"[organization URI]/api/data/$metadata

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

How to find name and information about views of entity using javascript in dynamics crm

大兔子大兔子 提交于 2019-12-14 03:18:34
问题 I want to find the name and columns set in all Views of entity of dynamic crm with the use of javascript. enter image description here This names for entity display in above image and columns which are set in view. 回答1: "Saved Query" is the entity that holds all the data related to system views. However getting the columns will require some parsing as the "Grid" is stored as an xml in the "LayoutXml" attribute of the entity. For e.g. to fetch views on "contact" entity: OData: GET

Performing complex query with Dynamics CRM 4.0

有些话、适合烂在心里 提交于 2019-12-14 02:35:57
问题 I have two custom entites, Product and ProductType, linked together in many-to-one relationship. Product has a lookup field to ProductType. I'm trying to write a query to fetch Type1 products with a price over 100, and Type2 products with a price lower than 100. Here's how I would do it in SQL : select * from Product P inner join ProductType T on T.Id = P.TypeId where (T.Code = 'Type1' and P.Price >= 100) or (T.Code = 'Type2' and P.Price < 100) I can't figure out a way to build a

Angular & Xrm WebApi: Cannot assign result to class variable

佐手、 提交于 2019-12-14 02:23:33
问题 I'm building a base Angular 8.2 webressource for Dynamics CRM, but I can't manage to assign a value to a class property. The code is the following : HTML <div> Hello {{loggedInUserName}} from {{ title }}.<br/> <br/> The first retrieved user from WebApi was {{ firstUserFullName }} </div> and the controller : import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title

crm 2011 creating a view of merged contacts

南笙酒味 提交于 2019-12-14 02:09:31
问题 Can I create a view of the contacts that have been merged? I want to include active and inactive (sub ordinate) contacts as well in the view. I can search inactive contacts with the status 'Merged duplicates'. How do I find the master record in which it has been merged? Help is appreciated! :) 回答1: CRM has two fields called "merged" and "masterid" which indicate if the record was merged and the master record id. Unfortunately, CRM doesn't expose these fields so you won't be able to create a