Posts

Learn JavaScript for D365 CRM

 Learn JavaScript for D365 CRM In this blog we are going to learn how to write javascript to get , set , show , hide,notify, and making field values required or none in d365 if this blog helpful for you please follow and comment below thank you function LearningJs(executionContext) {     var formContext = executionContext.getFormContext();     //getting field values      var name = formContext.getAttribute("name").getValue();     //set field values      formContext.getAttribute("name").setValue("New");     //getting lookup values      var accountlookup = formContext.getAttribute("account").getValue();     //set lookup value      accountlookup[0].Id = accountId;     //retrieving values from account lookup and setting values      if (accountlookup != null)     {         Xrm.webAPI.online.service.retieve(accountlookup, acc...

C# Interview Questions and Answers

                 C# Interview Questions and Answers In this blog, I am sharing with you some of the interview questions related to C# Do comment and share it, Do follow for more content on D365 and C# updates   1.   What is OOPS?     Object-Oriented Programming (OOPS) is a programming paradigm that uses objects and classes for organizing code. It is based on the principles of abstraction, encapsulation, inheritance, and polymorphism. OOPS allows you to model real-world entities as objects and define their behavior through classes. 2.   Basic Concepts of OOPS with Example:     -   Abstraction:   Abstraction involves hiding complex implementation details and showing only the necessary features of an object. For example, a car's interface (steering wheel, pedals) abstracts away the internal engine workings.    -   Encapsulation:   Encapsulati...

Power Automate Interview Questions and Answers

 Power Automate Interview Questions and Answers  In this Blog, I am sharing with you some of the Power Automate questions and Answers that will be useful for Candidates experienced more than 2, 2 + years I hope This will help you get selected for the interviews. please comment below if it helps you and do follow our blogs on D365 CRM  Here I am sharing the top 50 questions asked on Power automated flows do read, practice and Rock on 1.    What is Power Automate, and how does it differ from traditional workflow automation tools?      Answer:   Power Automate is a cloud-based automation platform by Microsoft that allows users to create workflows to automate various tasks and processes. Unlike traditional tools, Power Automate is highly integrated with Microsoft 365, Azure, and hundreds of other third-party applications, making it easier to create seamless and efficient automation across the Microsoft ecosystem and beyond. 2.    Ex...
How to hide/Unhide Fields using Javascript D365 1. Create one field or Column in your Entity(Table) for Example  A. Entity Name(Table Name ) = College (logical name = new_college)  B. Column  = collegeFee (logical names are new_collegefee ) 2. Add JavaScript to your Web resource Library, Write the code as follows function hideOrUnhideFields(executionContext) {  var formContext = executionContext.getFrormContext(); var collegeFee = formContext.getAttribute("new_collegefee").getValue(); if(collegeFee != null) {     collegeFee.setVisible(true); } else {   collegeFee.setVisible(false); } } 3.Trigger this on  onSave or onLoad Events of Form
Auto-populate  Lookup Values using JavaScript in D365 1. Create One Many Relationship or Many to One Relationship between any two Entities Ex: Account and Contact  a. Consider Account as A Parent Entity(Parent Table) and Contact as Child Entity(Child Table) b.1-N or N-1 relationship is created between them. So Lookup is Field is Available in Child Table c. Create some Columns which were similar to Parent Table i.e. Account and Child Table i.e. Contact Example Columns are:                              1.CompanyName(Single line of Text)  => new_companyname                              2.CompanyPhoneNumber(phone number) => new_companyphonenumber                             3.CompanyEmail(Email) => new_companyemail           ...

Calculate Age using JavaScript in D365

Image
 Calculate  Age using JavaScript in D365 To get Age Value Using JavaScript prerequisites are : 1. Create A Date Column (Field) in Table(Entity) and name it "Date of Birth" or "DOB"      Copy the Schema Name : Ex: new_dob ; 2. Create An  Age Column(Field) in Table (Entity) and name it "Age"         Copy the Schema Name : Ex: new_age ; 3. Write A JavaScript Code in any Editor as below or directly in WebResource function   getAge(executionContext) { debugger  // Used for debugging Errors var formContext = executionContext.getFormContext();  var dob = formContext.getAttribute(" new_dob ").getValue();                  //Getting value from dob field var today = new Date();                                // getting current date value and storing in "today" variable var birthdate = new Date(dob)...