Technical Solutions, Software Development, MS Dynamics CRM Customization, Development, Report Development
Showing posts with label Plugin. Show all posts
Showing posts with label Plugin. Show all posts
Saturday, March 24, 2018
Wednesday, July 8, 2015
Prevent Delete on Desired Condition - CRM 2013 Plugin
Scenario: XYZ Pvt Ltd, wants to implement business logic of Delete prevention if value of Is Delete Field is No on Opportunity Entity. CRM 2013 will prevent deltetion of record if value of Is Delete Field is set to No and vice versa.
Work Around: We have added a custom field on Opportunity Entity with Display name 'Is Delete' & Schema Name 'IsDelete'.
Solution: Below is the CRM 2013 Prevent Delete Plugin code.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;
using Microsoft.Crm.Sdk.Messages;
namespace PreventAccountDelete
{
public class Class1:IPlugin
{
Subscribe to:
Posts (Atom)
Asp.Net MVC (5) - Exception Filter - HandleError
Applicable on Asp.Net MVC5 HandleError Filter This belongs to Exception Filters category (Authentication Filter, Authoriz...
-
1) Install Ribbon Workbench from here 2) Import solution in your Dynamics CRM 365 instance 3) A button " RIBBON WORKBENCH 2016 ...
-
This case is about adding iframe in Dynamics CRM and setting asp.net web form / mvc page to show. One error which can prevent page to load ...

