Posts

GET/SET different field values using JavaScript and generate unique name...

Image
code: function generateUniqueName(executionContext) {     // Get the form context from the execution context     var formContext = executionContext.getFormContext();     // Get the values of the customer, bank account, and loan type fields     var customerLookup = formContext.getAttribute("abc_customer").getValue();     var bankAccountLookup = formContext.getAttribute("abc_bankaccount").getValue();     var loanType = formContext.getAttribute("abc_loantype").getText();     // Check if a customer is selected and the loan type is "Personal Loan" or "Car loan"     if (customerLookup && (loanType == "Personal Loan" || loanType == "Car loan")) {         // Extract relevant information from the customer lookup field         var customerName = customerLookup[0].name;         var customerId = customerLookup[0].id;         // Gener...

How to use Business Rules to show Field on form based on value of anothe...

Image

100 Days 100 Learning Interview Questions Dynamics 365 CRM Data Types

Image

How to Show Confirm Dialog Box using JavaScript? How to display a progre...

Image
Code: function PromptDialog(executionContext) {     var confirmStrings = {         text: "Do you want to proceed?",         title: "Confirmation",         confirmButtonLabel: "Yes",         cancelButtonLabel: "No"     };     var confirmOptions = {         height: 200,         width: 400     };     Xrm.Navigation.openConfirmDialog(confirmStrings, confirmOptions).then(         function (success) {             if (success.confirmed == true) {                 CallMethod(executionContext); // Pass executionContext if needed             } else {                 // User clicked No             }         }     );...

How to set a field business required or mandatory using business rule ?

Image

Change Currency format in D365 Customer Engagement

Image

Relationship Behavior:

Image
let's delve into relationship behavior and the available options for 1:N and N:1 relationships in Microsoft Dynamics CRM. **Relationship Behavior:** In CRM, relationship behavior defines how records in the related (child) entity behave when the associated record in the primary (parent) entity undergoes certain actions. The available relationship behaviors are: 1. **Referential:** This behavior allows a child record to be associated with a parent record, but it doesn't enforce any specific actions when the parent record is modified or deleted. It's the most basic relationship behavior. 2. **Parental:** In this behavior, the child record acts as if it's owned by the parent record. When the parent record is deleted, child records are also deleted. This is useful when you want a strict parent-child relationship, such as with activities linked to a contact. 3. **Custom:** Custom behavior provides more advanced control over what happens to child records when a parent record u...