Posts

Testing in 2026

Image
 Recently, I had to run regression tests to keep a complex process running while I made changes and added features. Regression testing helps ensure quality and build client trust when we run large/complex processes; it is crucial to make sure old features keep working as expected and to catch any overlap early. I know this is common in our sector, and we don't want to break anything that is already done, so being meticulous is a must. As engineers, we try to make things as simple as possible for the next time we walk through the same path, so.. I found my dream team to accomplish this goal: If this is your first time taking testing to the next level like me, welcome! Playwright  is an end-to-end test framework for modern web apps. It bundles a test runner; here are some of the most-used commands. Install Playwright:  npm i  -D playwright Generate code through the steps you do in the browser:      npx playwright codegen [url] Run your testing:  no...

AI Is a Tool. Creativity Is Ours.

Image
A few months ago, I found myself sitting in front of a spinning piece of clay. There were around twelve of us in the pottery class. Same teacher. Same instructions. Roughly the same amount of clay. We were all trying to make the same thing: a plate. But none of the plates looked the same. Some were wide and flat. Others were deeper, smaller, or slightly uneven. The difference wasn't the clay or the wheel. It was the person using them. How much water we used. How much pressure we applied. How we controlled the speed. And how we reacted when the clay started moving somewhere we didn't expect. I've been thinking about that a lot as AI becomes part of everyday software engineering. We're increasingly working with the same models, similar tools, and access to an enormous amount of knowledge. But that doesn't mean we'll produce the same results. Because engineers don't arrive at these tools empty-handed. We bring technical experience, mistakes, domain knowledge, p...

PCF Commands

PCF  Commands  Build a Project: pac pcf init -n [ControlName] -ns [namespace] -t [field/dataset] -npm React: pac pcf init -n [ControlName] -ns [namespace] -t [field/dataset] -fw react -npm Install Fluent UI: npm ls react react-dom @fluentui/react Running a project on the emulator: npm start / npm watch npm start watch How to create a solution folder: Create a subfolder (optional) mkdir Solution  cd Solution  pac solution init --publisher-name [publisherName] --publisher-prefix [prefix] pac solution add-reference --path [local url] msbuild /t:build /restore Authenticate pac auth create --url [env url] pac auth create --environment [env url] pac auth list pac auth select --index 1 Publish/Update PCF in the environment pac pcf push --publisher-prefix [prefix] Validate Lint npm run lint 

Typescript commands

Image
Install Typescript: npm install -g typescript confirm installation: tsc creates js file Commit in Github Debugging Typescript To compile type script code: tsc -p . Running UT Install globally UT library: npm install -g type Parse the TS file to JS: tsc [file].ts run UT: tape Person.tests.js

Data Migration Toolbox

Image
Data Migration Tool is an app to migrate Dynamics CRM/Power Platform data between environments, using fetch XML queries.  What can you expect when you use this tool? It keeps Guid records. You can turn off the plugins to migrate data. You can apply a fetch filter per table. It's another way to deploy a portal. It executes an Upsert. It doesn't delete existing records. You can have a data backup. Other tools like Data Transporter on XRMToolbox also help you to copy data between environments respecting the record Guids and select the CRUD actions you want to apply. Both apps XRMTool and DMT run only on Windows. This post will explain How to use the Data Migration tool; during my years of experience, I have done this knowledge transfer for different reasons, so I considered it helpful to have these directions immortalized on the internet. I used this tool for different purposes such as a catalog table, some old Portal deployments (known as Power Pages today) To download the data m...

Using external Fonts in Power Pages

Image
Power platform has some specific font-family to customize your website... but as developers, we always try to figure out how far we can get to apply customizations. In this post, I will show you how to use an external font family in Power Pages to match the site with your client's brand. First, you will need a font-family file; I'll use one from Google Fonts ( Sedgwick Ave Display - Google Fonts ). Create a Web file record to attach the “*.ttf” file on the notes. I suggest leaving the Home Page as Parent if you use this font across all the pages.     To apply this font for H1 labels, download the existing CSS called "portalbasictheme.css" and edit this, replacing it with the new font-family properties.       Update the portalbasictheme.css by attaching this to web file record.     Finally, sync the portal configuration to apply these changes; note that this action synchronizes the changes done on the portal management app.       Then cli...

Power Automate Flow that return numbers on a text

Image
Hi Folks, Have you had this kind of requirement? Where you have to get all the numbers that exist on a text. I recently created a child flow with Power Automate that does this in 11 seconds. First, you must create a variable to append all numbers in this string. The next step is to split your text by space, but first, you need to remove possible characters that can be next to the numbers f.e. "$" or "," split(replace(replace(triggerBody()['text'],',',''),'$',''),' ') Next, per each record, you will validate if it is an int or float number, and if yes, it will be appended to the variable. if(or(isFloat(item()),isInt(item())),concat(item(),'|'),'') Finally, remove the last string that concatenates each number "|" and return it as the flow result. substring(variables('numbers'),0,sub(length(variables('numbers')),1)) The expected result of the following input is: "4|4.59|2...