Category: Have Code

Pexels Thisisengineering 3861958 0

Harnessing the Power of Automation: Creating a Custom Connector for a LOB HR System in Power Automate

Introduction In the digital age, automation is no longer a luxury but a necessity. Businesses are constantly looking for ways to streamline their operations and improve efficiency. One such tool that has been making waves in the world of business automation is Microsoft Power Automate. Power Automate allows you to create automated workflows between your favorite apps and services to...

Pexels Sora Shimazaki 5935791 0

Test-Driven Development in SharePoint Framework Projects Use Case

Introduction In the fast-paced world of software development, ensuring code quality and functionality is paramount. Test-Driven Development (TDD) offers a robust foundation for building reliable SharePoint Framework (SPFx) solutions. By integrating TDD into your SPFx projects, you can enhance code quality, facilitate maintenance, and streamline the development process. Understanding TDD and SPFx TDD is a software development approach where tests...

Pexels Thisisengineering 3861964 0

Introduction to Microsoft Teams Apps

Introduction Microsoft Teams has become the hub for teamwork in many organizations, offering a rich platform for extending functionality through apps. These apps can be custom-built or sourced from the Teams app store, providing a wide range of capabilities from project management to employee engagement. Deep Dive into Teams App Capabilities Tabs Tabs are integral to the Teams experience, allowing...

Pexels Thisisengineering 3861972 0

Testing SharePoint Framework (SPFx) Components with Jest and React Testing Library

Introduction Testing is a crucial aspect of any software development process, including SharePoint Framework (SPFx) development. Here are some reasons why testing is important: Testing is an essential part of SPFx development. It helps ensure the quality, reliability, and performance of your components, leading to a better end product and a smoother user experience. How to test? First, we need...

Pexels Divinetechygirl 1181676 0

Demystifying DTOs, Mappers, and When to Use AutoMapper, C# and TypeScript

In modern software development, especially in projects following the principles of clean architecture and domain-driven design, the proper management of data transfer objects (DTOs) becomes crucial. DTOs help in decoupling the internal domain model from the external world, ensuring flexibility, scalability, and maintainability of the application. However, managing DTOs manually can become tedious, especially in large-scale projects. This is where...

Pexels Pixabay 209224 0

Convert numbers to words currency (pt-pt, pt-br, en-us) the confusion!!

This is a know issue for converting numbers to words (Currency). There is some confusion in this concept, because not all countries use the same standard. Portugal uses the same nomenclature as most European countries, such as Spain, Italy, France, England, Germany, etc. But for example, the United States and Brazil use another form to designate numbers, which sometimes generates...

Pexels Sora Shimazaki 5926380 0

Consume Lookup Multi Select Fields SPFx with Models and Hooks

First when you set up lookup columns in a list or library, Microsoft restricts you to 12 columns of that type in a single view. The reason behind this limitation is that lookup columns retrieve data from another list or source. If you surpass this limit and try to add a 13th column, you’ll encounter an error message. It seems that 13 isn’t a...

Pexels Andrea Piacquadio 3822850 0

SPFx IPropertyPaneDropdownOption[] get Unique Options (Duplicates) Cascade

When designing the property pane for your SharePoint client-side web parts, you may have one web part property that displays its options based on the value selected in another property. This scenario typically occurs when implementing cascading dropdown controls. I’m assuming in this Article/Fix you are getting all lists excluding the hidden ones. Let’s Start from the beginning, you have...

Pexels Andrea Piacquadio 3822850 0

PnPJs SPFx orderBy() not working?

In the PnPJs Agnostic Framework Some fields are not sortable, let’s assume this call is using a MODEL where TrainingAreaPosition is a number column without decimal places: I’m using a Custom React Hook, fix by comparing the field name, where Position is a property of the Model to Map

Pexels Andrea Piacquadio 3822850 0

Using SPFx React Controls Context in version 1.17.3

Since React 17 was introduced in version 1.16.0, the problems has began with some PnP Projects. In version 1.17.3 you will get this error when installing the PnP React Controls, so you must wait for the Repo be updated. In version 1.16.1 to use the PeoplePicker Control the workaround was give context as any in your Webpart.ts Now if you...