Posts

Posts mit dem Label "APP" werden angezeigt.

😱 Retired API: SP.Utilities.Utility.SendEmail - move to Microsoft Graph API

Yesterday I received a call from a (now a new 😊) customer, and he complained about a custom app (WebPart) solution. He told me that the app normally sends an email automatically after a user uses a specific function in the app. But at the moment the email is missing from the app. The customer explained to me that the IT members have checked the email settings already and the email account is working fine. I asked for the source code, and I started to debug the solution. Then I found out that the app is still using the old retired SP.Utilities.Utility.SendEmail function to send emails. I updated the email sending method within the app and implemented a Microsoft Graph-based method. For everyone who needs to send an email within an SPFx app, see the code below. static async sendEMail(receiver: string, subject: string, bodyText: string, webPartCtx: WebPartContext): Promise<void> { const sendMailMessage = { message: { subject: subject, body: { ...

.NET MAUI - iOS: Warning: unable to build chain to self-signed root for signer iPhone Distribution

Bild
At the moment I'm building a .NET Maui App for iOS and Android devices. For iOS it is necessary to have a valid certificate installed on the remote MAC machine. Because building native iOS applications using .NET Multi-platform requires access to Apple's build tools, which only run on a Mac 🙄. As I started with the developing I was not sure to buy a Mac just for this process but at the end it is worth to have a pysical macOS machine (note: a Mac mini is for the building process enought). The integration in the building process inside Visual Studio 2022 is very good. As soon the Mac machine is available in the local network it is very easy to connect to the machine within Visual Studio. The following screenshot shows the responsible dialog to establish a remote connection to the macOS machine. Connect to a Mac But - of course - not the whole building process ran smooth. During my first try to build the iOS version of my App I was presented with the following error message: ...

SharePoint Online: Einbinden von Script-Code auf einer SharePoint Seite

Bild
In manchen Fällen ergibt sich die Anforderung, nur einen kleinen Script-Code oder eine kleine App auf einer SharePoint Seite einbinden zu müssen, die nur einmalig benötigt wird. Für alle diese Fälle jeweils eine vollständige clientseitige SharePoint SPFx-App umzusetzen ist oft zu viel Aufwand. Um diese Lücke zu schließen, erlaubt das " Script Resource Manager " Webpart (App) die Einbindung von Script-Code direkt auf einer Seite. Dies sollte aber nicht dafür genutzt werden, um direkt integrierte SharePoint (DOM-) HTML-Elemente zu verändern. Da die SharePoint Oberfläche durch ständige Aktualisierungen (Updates) verändert wird, kann nicht eine DOM-ID oder CSS-Klasse als Selektoren für Modifikationen benutzt werden. Mit dem Script Resource Manager" sollten nur eigenständige isolierte Skripte eingebunden werden. Das nachfolgende Video verdeutlicht die Funktionsweise.

SharePoint Online: (Streaming-) Video- und Audio-Dateien einbinden

Bild
SharePoint stellt mit Microsoft-Stream eine Plattform für die Ablage und Auslieferung von Medien (Audio und Video) zur Verfügung. Über eine Standard-App (WebPart) können Medien auf einer Seite eingebunden werden. Die Möglichkeiten der Einbindung sind aktuell noch etwas begrenzt. Ich habe dazu eine erweiterte SharePoint App umgesetzt, die etwas mehr Möglichkeiten zur Verfügung stellt. Zudem unterstützt die App die Einbindung und Wiedergabe von Streaming Inhalten. Das folgende Video zeigt die Verwendung der App und die Einbindung verschiedener Inhalte.

Set up a SharePoint Framework development environment (WIN 11 / no Docker)

Bild
This video explains all the necessary steps to set up a development environment for SharePoint Framework (SPFx) based solutions on Windows 11. As an alternative you can use a Docker container to build SPFx based solutions.  Command to check installed Node.js version: node --version   Powershell to set policy: Get-ExecutionPolicy -List  Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser  Important links: https://nodejs.org/de/download https://code.visualstudio.com/download Packages/Tools: Gulp npm install gulp-cli --global Yeoman npm install yo --global Generator npm install @microsoft/generator-sharepoint --global Trust Certificate: gulp trust-dev-cert  Create a new project: yo @microsoft/sharepoint