Book Image

Microsoft 365 and SharePoint Online Cookbook

By : Gaurav Mahajan, Sudeep Ghatak
Book Image

Microsoft 365 and SharePoint Online Cookbook

By: Gaurav Mahajan, Sudeep Ghatak

Overview of this book

Microsoft Office 365 provides tools for managing organizational tasks like content management, communication, report creation, and business automation processes. With this book, you'll get to grips with popular apps from Microsoft, enabling workspace collaboration and productivity using Microsoft SharePoint Online, Teams, and the Power Platform. In addition to guiding you through the implementation of Microsoft 365 apps, this practical guide helps you to learn from a Microsoft consultant's extensive experience of working with the Microsoft business suite. This cookbook covers recipes for implementing SharePoint Online for various content management tasks. You'll learn how to create sites for your organization and enhance collaboration across the business and then see how you can boost productivity with apps such as Microsoft Teams, Power Platform, Planner, Delve, and M365 Groups. You'll find out how to use the Power Platform to make the most of Power Apps, Power Automate, Power BI, and Power Virtual Agents. Finally, the book focuses on the SharePoint framework, which helps you to build custom Teams and SharePoint solutions. By the end of the book, you will be ready to use Microsoft 365 and SharePoint Online to enhance business productivity using a broad set of tools.
Table of Contents (22 chapters)

Debugging your SPFx web part

No one is perfect, and it often takes several iterations before the desired outcome is achieved. You have to peek into the code in real time to identify certain failure points. Debugging is a skill and can only be mastered with practice.

Debugging is an essential part of the software development life cycle. Not only does it allow the developers to validate their logic, but it also uncovers some areas of improvement. Since all the logic for SPFx web parts exists inside the JavaScript file, we are going to use our JavaScript debugging skills here.

There are two styles of debugging that people use:

  • Logging: One of the ways to debug the execution flow is by adding console.log() statements to your JavaScript file at various places. The debugger prints the messages in the order in which they are encountered.
  • Using developer tools: This is a more useful way to debug your code by adding breakpoints, watching, and...