Move queue item from one queue to another programmatically in Dynamics 365

This article shows how to add a record from one queue to another. AddToQueueRequest routeRequest = new AddToQueueRequest{ SourceQueueId = queueId.Id, Target = new EntityReference(obj.LogicalName, obj.Id), DestinationQueueId = userQueueId};orgService.Execute(routeRequest); Sample Code using Microsoft.Xrm.Sdk;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Microsoft.Crm.Sdk.Messages;using System.ServiceModel.Description;using System.Net;using Microsoft.Xrm.Sdk.Client;using Microsoft.Xrm.Sdk.Query;using Microsoft.Xrm.Sdk.Metadata.Query;using Microsoft.Xrm.Sdk.Messages;using Microsoft.Xrm.Sdk.Metadata; namespace CRMCodeHelper{class Program{private static IOrganizationService service = null;static voidContinue reading “Move queue item from one queue to another programmatically in Dynamics 365”

Call Global Custom Action using JavaScript in Dynamics 365

Sometimes there are scenarios you need to create Global Actions where you don\’t specify an entity in particularly. When you create such global action and if you need to call that action from your JavaScript code or on Button Click. Here is the way to do that. Example of calling Global Action Without Parameters: CreateContinue reading “Call Global Custom Action using JavaScript in Dynamics 365”

Get Entity Logical Name from its Object Type Code in Dynamics 365

Being a CRM developer, while writing the code, you might need to get the Entity Logical Name from its Object Type Code, So here is the code to do the same: public static string geEntityLogicalName(int ObjectTypeCode){ string entityLogicalName = String.Empty; MetadataFilterExpression EntityFilter = new MetadataFilterExpression(LogicalOperator.And); EntityFilter.Conditions.Add(new MetadataConditionExpression (\”ObjectTypeCode\”, MetadataConditionOperator.Equals, ObjectTypeCode)); MetadataPropertiesExpression mpe = new MetadataPropertiesExpression();Continue reading “Get Entity Logical Name from its Object Type Code in Dynamics 365”

Introduction of Azure Function and its Integration with Dynamics 365

What is Azure Function? We all grew up learning Functions in C#. A Function allows you to encapsulate a piece of code and call it from other parts of your code. You may very soon run into a situation where you need to repeat a piece of code, from multiple places, and this is where functions comeContinue reading “Introduction of Azure Function and its Integration with Dynamics 365”

Upgrade Adxstudio to Dynamics 365 Portal

As we all know that Microsoft has announced in September 2017, Product support for legacy Adxstudio Portals v7 will end on August 1, 2018. Now, many existing Adxstudio customers are looking to see what their upgrade options are. Before understanding about various techniques in order to Upgrade Adxstudio to Dynamics 365 Portal. Let\’s discuss first, WhatContinue reading “Upgrade Adxstudio to Dynamics 365 Portal”

Show Collapsible Tab in CRM Portal Entity Form

Collapsible sections are perhaps the most fundamental of interactive design patterns on the web. All they do is let you toggle the visibility of content by clicking that content\’s label. One of the major advantages of collapsing the content is that the headings become adjacent elements, giving the user an overview of the content availableContinue reading “Show Collapsible Tab in CRM Portal Entity Form”

Issue while Installing Adxstudio Portal 7.0.0026 in Dynamics 365

If someone tries to install AdxStudio Portal Latest Version in their Dynamics 365 instance, they might face the following issue while installing Portals in CRM: [entity] List – The evaluation of the current component(name=Entity, id=efd3a52d-04ca-4d36-a54c-2a26a64f5571) in the current operation (Update) failed during managed property evaluation of condition: The evaluation of the current component(name=Entity, id=efd3a52d-04ca-4d36-a54c-2a26a64f5571) inContinue reading “Issue while Installing Adxstudio Portal 7.0.0026 in Dynamics 365”

Display Dynamics 365 Plugin Errors on Portal

The scenario that often occurs while developing a portal is an error generated by custom plug-ins and business logic written in your Dynamics 365 organization. These errors can generally be accessed by disabling custom errors or enabling diagnostic logging. However, in some cases, it is faster to display these errors directly on the portal toContinue reading “Display Dynamics 365 Plugin Errors on Portal”

Change the Portal after Installing different Portal in Dynamics 365 Instance

Hello Everyone, Recently I got into one situation where I had to Uninstall the Customer Service Portal and had to Install Custom Portal. You may also have the requirement to change the Portal Template after installing it in CRM, If you want to Reset or UnInstall the Portal from your CRM Instance, Delete the solutionContinue reading “Change the Portal after Installing different Portal in Dynamics 365 Instance”

CRM Portal – View the Entity List Records in New Tab

By default, when you click on Entity List record, it opens that record in the same tab where the Entity List record was opened. But sometimes it might require that you want to see the details of record in other tab instead of opening it in a similar tab. Use below code under Custom JavaScriptContinue reading “CRM Portal – View the Entity List Records in New Tab”