Dynamics 365 CRM Plugins Code Sample for Practice

Summary : Dynamics 365 CRM Plugins Code Sample for Practice

All we have started code samples for plugins you can download from the following link.

https://crmoncee.sharepoint.com/:f:/s/academic/EooJQ3KamatDo6HkjvaU9MQB8m-excku_dV4PolENH1EIQ?e=egxeIY




If you need any implementation help or Support. get in touch with us.

Contact US:

Email : info@crmonce.com
Phone: +91 9493916112
Skype for Business: umamahesh@crmonce.com



Dynamics 365 CRM Integrations Training & Support


Summary : Dynamics 365 CRM Integrations Training & Support

In this course we teach you about the integrations and basics of azure, Data Migration.

High Level Topics will be covered:

1. Azure trail setup & resource groups, subscription.
2. Azure Logic Apps, App services.
3. Developing the custom WebApi and deploying.
4. Azure Functions, Service bus, Azure Blob storage.
5. Consuming Webapi’s in Plugins.
6. Setup azure sql server, VM’s.



How to Restrict the deleting a record in Dynamics 365 Plugin

Summary:  How to Restrict the deleting a record in Dynamics 365 Plugin


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xrm.Sdk;
using System.ServiceModel;
using Microsoft.Xrm.Sdk.Query;

namespace Opportunity1
{
    public class OpportunityPreDelete : IPlugin
    {
        public void Execute(IServiceProvider serviceProvider)
        {
            // Obtain the execution context from the service provider.
            IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
            // Obtain the organization service reference.
            IOrganizationServiceFactory factory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
            IOrganizationService service = factory.CreateOrganizationService(context.UserId);
            if (context.InputParameters.Contains("Target") && (context.InputParameters["Target"] is EntityReference))
            {
                if (context.MessageName == "Delete")
                {
                    throw new InvalidPluginExecutionException("opportunity deletion not allowed");
                }
            }

        }

    }
}


If you need any implementation help or Support. get in touch with us.

Contact US:

Email : info@crmonce.com
Phone: +91 9493916112
Skype for Business: umamahesh@crmonce.com


What is a Azure Logic Apps

Summary : Azure Logic Apps Introduction



Azure Logic Apps is a cloud service that allows you to automate business processes and tasks.
Logic Apps simplifies the design and development of scalable solutions for application integration, data integration, system integration, enterprise application integration (EAI) and business-to-business (B2B) communication, whether in the cloud, on site or on both sides.


Some scenarios we can automate the with logic apps:
·         Send Office 365 email notifications when events occur in different systems, apps and services. 
      Move uploaded files to Azure Storage from an SFTP or FTP server. 
      Monitor tweets for a particular topic, analyze feelings and create alerts or tasks for items that need to be reviewed.

Azure Logic Apps having a growing gallery with 200+ connectors, which include services such as Azure Service Bus, Functions, and Storage; SQL, Office 365, Dynamics, Salesforce, BizTalk, SAP, Oracle DB, file shares, and more. 

·         Managed connectors: logic apps need access to data, services, and systems. Use prebuilt Microsoft-managed connectors that are designed to connect, access, and work with your data.
·         Triggers: Connectors provide triggers that fire when events or new data meet specified conditions
·         Actions: Actions are all the steps that happen after the trigger. Each action usually maps to an operation that's defined by a managed connector, custom API, or custom connector.


If you need any implementation help or Support. get in touch with us.

Contact US:

Email : info@crmonce.com
Phone: +91 9493916112
Skype for Business: umamahesh@crmonce.com



Popular Posts