Posts

Showing posts from August, 2023

Auto Number Id Generation for Any Entity using Plugin

Image
 In Microsoft dynamics, we have auto generated id for the case, quote and for some other. Like that if u want to generate any auto generate id then follow this post, you can achieve this easily.  Before going this post, you must have idea on shared variables and also crud operation by using plugin. We will discuss detailly. For the auto number generation, we required one backup entity to store the number. and one more entity to generate id.  In My Scenario, I am using opportunity entity for id generation and configuration for the backup entity. I am triggering my plugin on creation of opportunity entity. If any record is created at that time I need to generate id for the each record without duplication. I am creating two plugins for my scenario. Step1: Add the one class library project in visual studio  Step2: Install the nugget packages for the project like crm. sdk  Step: Add the common code to plugin. Follow the below code for the auto generation   using Microsoft.Crm.Sdk.Messages;

create HTML page show all contact related to specific account, add this webresource as a subgrid in the form

Image
  We need to create one html and add the JavaScript and CSS. After Add the webresource to Form. For this fist we need to create hml like below <!DOCTYPE html> <html> <head>     <title>Contact Records</title>     <style>         table, th, td {             border: 1px solid black;             border-collapse:collapse;             border-color:yellow;         }         td{             text-align:center;             color:blue;             background-color:blue;                      }         th{             background-color:red;         }         td{             color:blueviolet;         }     </style> </head> <body>     <table >         <thead>             <tr>                 <th>Column name1</th>                 <th>Column name2</th>                 <th>Column name3</th>                  <th>Column name upto n</th>             </tr>         </thead>