Posts

Get Power Automate Context using flow run Table with Microsoft API In MS CRM

Image
Hi Everyone, After long time i am writing one of major set back to Handel the event from power automate context and get the record id and Trigger entity data using Microsoft API.                        For Every MS CRM Project mostly they are implementing the power automate to run the Custom user logic. If cloud flows are more in tenant, if user ask to some logic was not worked for the one of the record, in that case, we need to open our cloud flow and go to all runs get the flow run for specific time period. It will take more time if run was there more then 1 week or 1 month, in That case we need to handle that scenario, without opening the Power automate we need to get the flow run URL for specific record. So now we came with the best approach to handle these type of Issue for Developers.                      Main point to get the logs for your tenant, DLP Policy will be ...

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...

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;         }        ...

Get and set using Plugin in MS Crm

 If you want to set up data immediately then go for the JavaScript. if you want to set or get the data on form save then use the plugin. in this post we will discuss about get and setting of data using plugin. Fist we discuss about getting the data. Single and multiple line of text: return type is string . string varname= targetobject.Contains(Schemaname)?(string ) targetobject[Schemaname]:null; Option set: return type is OptionSetvalue for getting the value of the option set OptionSetValue Varname= targetobject.Contains(Schemaname)?(OptionSetValue ) targetobject[Schemaname]:null; Varname.Value for the value reading Two Option Set return type is bool  bool Varname=  targetobject.Contains(Schemaname)?(bool ) targetobject[Schemaname]:null; Whole Number  return type is integer int Varname=  targetobject.Contains(Schemaname)?(int) targetobject[Schemaname]:null; Floating number and Decimal number return type is Dounble doubleVarname=  targetobject.Cont...