dynamics-crm-2016

How to return EntityCollection as Outparameter custom activity

杀马特。学长 韩版系。学妹 提交于 2019-12-10 18:43:13
问题 [ReferenceTarget("contact")] public InOutArgument<EntityReference> PartyList{ get; set; } How can I return/send a list of ActivityParty or a EntityCollection from a custom CodeActivity back to the workflow step? Inside my execute method, when I return an EntityCollection or a List I get a type conversion error. From the responses below - I wanted to add some clarification: How can I pass any collection back, I see the list is limited - I was looking for a workaround. Since EntityReference was

Dynamics CRM 2016 modify list of activities views

心已入冬 提交于 2019-12-10 10:05:05
问题 I am very new to MS Dynamics. I am using dynamics CRM 2016 and I need to remove, in the activities page, the views about entities that I am not using such as Campaign Response, Campaign Activity, etc. I do not see them in the list of views of the Activity entity in my solution, so I cannot remove them from there, am I missing something? Is there a way to remove those views? 回答1: Its possible. I found the way to do it finally after just 3 days of research. Open your CRM web in XRM Tool kit

Dynamics CRM Plugin Trace log record throwing Access Denied error for System Administrator

最后都变了- 提交于 2019-12-08 11:01:44
问题 Its really weird to see Access Denied error for System Administrator in CRM. When trying to open any record from Plugin trace logs, system throws the below error in our dev environment. Access Is Denied You do not have enough privileges to access the Microsoft Dynamics CRM object or perform the requested operation. For more information, contact your Microsoft Dynamics CRM administrator. Unable to verify the missing access rights as there is no 'Download Log' button, platform trace cannot be

How to customize email template in crm 2016 by code

坚强是说给别人听的谎言 提交于 2019-12-07 12:46:18
问题 I am using CRM 2016, and trying to customize email template by adding a dynamic data. I know that CRM allows to use only specific vanilla entities, but when I explorer an old code I found an option to use {0}, {1} etc' for injecting data from non vanilla entities (by code) - unfortunately that code cannot be tested... Have someone heard or know about that way? is it possible? what to google for? 回答1: You can do this by manually typing similar marker what CRM is using. Note that this is not

Set CRM Lookup Values with WebAPI

徘徊边缘 提交于 2019-12-06 03:56:23
Who had done CRM Web API calls to update CRM entities with Lookup values from another Entity. I'm trying to set a Lookup Value to another Entity within CRM using WebAPI, CRM 2016. It works if I disable the Lookup value but once I enable the Lookup value, I receive Bad Request. Below is my code in LinqPad so it does work. void Main() { using(var webClient = new WebClient()){ webClient.Credentials = new NetworkCredential("Username", "Password", "Domain"); webClient.Headers.Add("OData-MaxVersion", "4.0"); webClient.Headers.Add("OData-Version", "4.0"); webClient.Headers.Add("accept", "application

Dynamics CRM 2016 modify list of activities views

人走茶凉 提交于 2019-12-05 22:33:18
I am very new to MS Dynamics. I am using dynamics CRM 2016 and I need to remove, in the activities page, the views about entities that I am not using such as Campaign Response, Campaign Activity, etc. I do not see them in the list of views of the Activity entity in my solution, so I cannot remove them from there, am I missing something? Is there a way to remove those views? Its possible. I found the way to do it finally after just 3 days of research. Open your CRM web in XRM Tool kit (download if not having it) XRM toolkit access your org using url and login. Assuming you have privilege access

Changing Business Process Flow Stage in C# Plugin

馋奶兔 提交于 2019-12-05 20:33:15
问题 I am following this article to change my Business Process Flow stage within a c# plugin. I am able to move the stage forward to the next stage, but I am receiving an error when I try to move back to a previous stage. The error below is what I receive in the UI from Dynamics. When I debug the plugin, I receive a FaultException<OrganizationServiceFault> exception that doesn't contain any information. Why am I receiving an error and how can I modify my code to successfully go back to a previous

How to customize email template in crm 2016 by code

大兔子大兔子 提交于 2019-12-05 19:17:51
I am using CRM 2016, and trying to customize email template by adding a dynamic data. I know that CRM allows to use only specific vanilla entities, but when I explorer an old code I found an option to use {0}, {1} etc' for injecting data from non vanilla entities (by code) - unfortunately that code cannot be tested... Have someone heard or know about that way? is it possible? what to google for? You can do this by manually typing similar marker what CRM is using. Note that this is not documented in SDK. Dynamic Values For Custom Entities In Email Templates In the template, where you want the

How to query metadata for all existing fields

…衆ロ難τιáo~ 提交于 2019-12-04 16:25:49
问题 We want to enable the client to post to an endpoint such as: [Route("Account", Name = "CreateAccount", Order = 1)] [HttpPost] public Account CreateAccount([FromBody] Account account) { var newAccount = _accountService.CreateAccountEntity(account); return newAccount; } We know that this can be done: POST [Organization URI]/api/data/v8.2/accounts HTTP/1.1 Content-Type: application/json; charset=utf-8 OData-MaxVersion: 4.0 OData-Version: 4.0 Accept: application/json { "name": "Sample Account",

Dynamics CRM 2016 Online Rest API with client credentials OAuth flow

▼魔方 西西 提交于 2019-12-04 13:19:38
问题 I'm trying to authenticate with Dynamics CRM 2016 Online and Azure Active Directory. I was able to follow all the steps here: https://msdn.microsoft.com/en-us/library/mt622431.aspx and https://msdn.microsoft.com/en-us/library/gg327838.aspx but these steps demonstrate how to set-up username authentication flow. I would like to use the client credentials flow. I created a new app in Azure AD - a web application. I have a client ID and an app key and I set-up the permissions for Dynamics CRM