Posts

SharePoint: Power Apps Formular & Einbindung externer Daten

Bild
SharePoint ermöglicht die Anpassung der Standard-Eingabeformulare für Listen. Jedoch sind die Möglichkeiten in diesem Bereich noch stark begrenzt und erlauben im Schwerpunkt nur visuelle Anpassungen. Zusätzliche Funktionen, wie zum Beispiel das dynamische Ein- und Ausblenden von Feldern in Abhängigkeiten der Eingaben, ist nicht umsetzbar. Auch stellt es sich als Herausforderung dar, externe Daten in ein Formular einzubinden. Für solche Anforderungen macht es Sinn, dass eingebaute Standardformular durch ein Power App Formular zu ersetzen. Das nachfolgende Video zeigt dazu ein Beispiel. Es wird demonstriert wie über einen eigenen Konnektor (Custom Connector) externe Daten aus einer Webdienst-Schnittstelle (REST-Endpoint) in ein Power App SharePoint Formular eingebunden werden können. Bei der Verwendung von Premium-Features ist die Lizenzierung zu beachten. Bevor diese Features verwendet werden, sollte geklärt werden, ob entsprechende Lizenzen vorhanden bzw. angeschafft werden können. Hin

Connect-SPOService: The remote server returned an error: (400) Bad Request

Bild
Today I ran in a problem during connection to a customer Office 365 tenant. I tried to connect via PowerShell (7) with the standard cmdlet "Connect-SPOService". But after I entered my valid credentials 😉 and confirmed the two-factor validation the command ends with: "The remote server returned an error: (400) Bad Request." 😒 Error message In my script I imported the SharePoint Online PowerShell module with: Import-Module Microsoft.Online.SharePoint.PowerShell To solve the issue I had to append -UseWindowsPowerShell Import-Module Microsoft.Online.SharePoint.PowerShell - UseWindowsPowerShell After this change I was able to connect to the customer SharePoint Online tenant. 😊 Happy scripting ...

Office 365: Neues Design und Funktion im App Launcher verfügbar

Bild
In Office 365 steht nun seit März 2024 überall der neue App-Launcher zur Verfügung. Die Änderungen im Detail: Modernes Erscheinungsbild: Der neue Microsoft 365-App-Launcher ermöglicht eine schnelle Navigation durch die Microsoft 365-Websuite – alle Ihre bekannten Apps in derselben Reihenfolge, präsentiert in einem neuen modernen Design. Suche: App-Suche zum schnellen Finden weiterer Apps. Konsistenz: Für jeden Benutzer werden dieselben Apps in derselben Reihenfolge angezeigt. Schnelle Erstellung: Ein-Klick-Erstellungsoptionen für beliebte Inhaltstypen. Überall eingebunden: Der neue App-Launcher ersetzt den bestehenden App-Launcher in den meisten Microsoft 365-Web-Apps, einschließlich Microsoft365.com, Outlook, SharePoint, OneDrive, Word, Excel, PowerPoint und vielen mehr. Neue Microsoft 365-App-Kachel: Der Link zu Microsoft365.com wird von einem dedizierten Link oben rechts zur ersten App verschoben, die in der App-Liste angezeigt wird. Einstellung des Abschnitts

Issue: npm gulp.ps1 is not digitally signed by using gulp serve

Recently I used a new installed development environment on a laptop and I tried to rebuild a customer SPFx solution.  But I received an error message when I tried to build the solution using  the gulp serve command. I was presented with the below error: “gulp : File C:\Users\M_A_Z\AppData\Roaming\npm\gulp.ps1 cannot be loaded. The file C:\Users\M_A_Z\AppData\Roaming\npm\gulp.ps1 is not digitally signed.” Full German error message: gulp : Die Datei "C:\Users\M_A_Z\AppData\Roaming\npm\gulp.ps1" kann nicht geladen werden. Die Datei "C:\Users\M_A_Z\AppData\Roaming\npm\gulp.ps1" ist nicht digital signiert. Sie können dieses Skript im aktuellen System nicht ausführen. Weitere Informationen zum Ausführen von Skripts und Festlegen der Ausführungsrichtlinie erhalten Sie unter "about_Execution_Policies" (https:/go.microsoft.com/fwlink/?LinkID=135170)..  Solution for the current session: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass 😌Happy coding ...

Ein eigener ChatBot mit Microsoft Copilot Studio für SharePoint Inhalte

Bild
Mit Microsoft Copilot Studio können leistungsstarke KI-gestützte Copiloten realisiert werden, die eine Reihe von Anfragen bearbeiten und beantworten können. Eingebunden werden können die Bots intern im Unternehmensnetzwerk oder auch auf externe Webseiten. Die bekannten Power Virtual Agents-Fähigkeiten und -Funktionen sind jetzt Teil von Microsoft Copilot Studio und vollständig integriert in Microsoft Copilot. Das nachfolgende Video demonstriert die folgenden Punkte: Auswertung von eigenen Inhalten aus einer SharePoint Bibliothek Demonstration eines eingerichteten ChatBot Einrichten eines eigene ChatBot in Microsoft CoPilot Erstellung einer App-Registrierung in Microsoft Entra (Azure) Konfiguration der Authentifizierung im ChatBot Einbinden des ChatBot auf einer SharePoint Webseite

Use pdfmake library in SPFx v1.18.2 projects

For my current customer project I needed to implement a SPFx based WebPart solution to fetch information from Office 365 via Graph API and to summarize the information in a PDF document. The customer does not want to have any server side code (e. g. serverless  AZURE function). This means I had to create the PDF on the client. For that purpose I used the library pdfmake in my SPFx React based App. To use the library in a SPFx project you should consider the bottom implementation to prevent errors like the following two possible pitfalls: Roboto-Regular (or any other) font not found in virtual file system Argument of type '{ pageSize: string; header: string; content: ({ text: string; style: string; table?: undefined; layout?: undefined; } | { style: string; table: { widths: any[]; headerRows: number; body: any[]; }; layout: { fillColor: (rowIndex: number) => string; }; text?: undefined; })[]; styles: { ...; }; }' is not assignable to parameter of type 'TDocumentDef

ASP.NET RAZOR: Multiple page methods for POST / GET & Ajax call - possible issues

Bild
In my current project I need a additional page method for POST requests beside the default page POST method. Actually I don't use any page POST methods because I use in the most of the times the WebAPI REST endpoints for all CRUD operations. But for the new requirement I need a POST method to send out an E-Mail message from a clientside call. For the client call I used jQuery and implemented the following code: $.ajax({   url: "/WebForm/FormData/SendMessage",   type: "POST",   contentType: "application/json; charset=utf-8",   data: options.data,   success: function (d) {...},   error: function (d) { ...} }); Page url: /WebForm/FormData In the page model class I added a new post method with the prefix "OnPost" to mark the method as POST-method: public async Task<JsonResult> OnPostSendMessage([FromBody] CloudFormMessageReply messageToSend) { ... } I thought everything is perfect in place and I tested my implementation but nothing happen