Posts

Showing posts from November, 2022

How to create a responsible editable grid in canvas app using containers.

Image
We will show you how to create a Responsive Editable Grid in Canvas App as quick as possible with the Horizontal container and Vertical container. Login D365: https://make.powerapps.com/ Create a new Canvas App, click on Edit App. Part 1 : Create new Screen Rename Event Screen. Place a Vertical Container on the screen. Height= Parent.Height Width= Parent.Width Place a Horizontal Container for buttons inside Vertical Container on the screen. Flexible height off Height =50 Place a Horizontal Container for Table Header inside Vertical Container on the screen. Flexible height off Height =50 Inside a Horizontal Container place Horizontal Gallery Insert label 4 and rename the label inside of header container.   Moving on to EditableGridContentGallery(Blank Vertical Gallery) , insert 4 Text Inputs to the Container , rename all the Text Inputs accordingly and for each Text Input , we will map the X and Width property of each text input control to correspond with the Title

How to get application name using JS in D365

 When we run this, we see in passing a variable into the first parameter(appName),  it gives us several pieces of information, including the appId, displayName, uniqueName, url, webResourceId, webResourceName, welcomePageId and welcomePageName function appName() { var globalContext = Xrm.Utility.getGlobalContext(); globalContext.getCurrentAppProperties().then(     function success(app) { console.log(app); },  function errorCallback() { console.log("Error");  }); } async function CheckAppNameForSpecificValue() {     returnBoolVal = false;     var globalContext = Xrm.Utility.getGlobalContext();     await globalContext.getCurrentAppName().then(function (appName) {         if (appName.displayname.toLowerCase() == 'myappname') {             returnBoolVal = true         }     },         function (error) {             console.log('err ' + error.message)         });     return returnBoolVal; }

Validation on D365 and Key Points to be Identified/Noted in D365

  Whenever Business Unit Created Automatically Teams will created ------------------------------------------------- String field number validation can be done OOB functionality 000-00-0000 go to field control and formatting ------------------------------------------------- Parent Business Unit cannot change directly  first need to export excel change then name in excel and report import the excel file using (Settings->Data Management->Import) ------------------------------------------------- While creating an entity owner will not change like "user or team" / "organization"  if we are creating as Owner = organization then we cannot see share, Assign in Security Role then if we are creating as Owner = User or Team then we can see share, Assign in Security Role ------------------------------------------------- Two Type of Dashboard  1. Default 2. Interactive Dashboards In Dynamics 365, there are 2 types of Interactive Experience dashboards: Single-Stream Dashboa

How to set field validation to mobile number using JS in D365

 function onLoadEvents() {     Xrm.Page.getControl('mobilephonenumber').addOnKeyPress(AllowOnlyNumbers); } function AllowOnlyNumbers() {           var phoneNo = Xrm.Page.getControl("mobilephonenumber").getValue();     phoneNo = phoneNo.replace(/\D/g, '');     Xrm.Page.getAttribute('mobilephonenumber').setValue(phoneNo);     if (phoneNo.length == 11) {         var formattedPhone = phoneNo.replace(/(\d{3})(\d{3})(\d{4})/, '$1-$2-$3');         Xrm.Page.getAttribute('mobilephonenumber').setValue(formattedPhone);     } }

How to update/set lookup fields using Power Automate Flow

 By using Trigger outputs if(     empty(triggerOutputs()?['body/_apy_lookuprid_value']),     '',     concat(         'apy_lookupfieldname(',         triggerOutputs()?['body/_apy_lookupid_value'],         ')'     ) ) By Using Loop/ApplyToEach  if(     empty(items('Apply_to_each')?['_apy_lookupid_value']),     '',     concat(         'apy_lookupfieldname(',         items('Apply_to_each')?['_apy_lookupid_value'],         ')'     ) )