BlazorSchedulerWithMSGraph

I have an O365 SharePoint list that has some appointment data in it.  I am trying to interact with it (CRUD) to be able to use the scheduler to view, insert, update, delete and am struggling trying to build the custom DataManager to interact with the list.  I am trying to leverage the latest Microsoft.Identity.Web mechanisms and not sure how to leverage the graph client within the separate custom DataManager class, using Inject doesn't seem to work. 

I saw the example BlazorSchedulerWithMSGraph and this is helpful, but I wonder if there is an example of this where the SFSchedule is bound to a custom DataManager to interact with the graph API as an example to do the CRUD?  Do you have any examples of this? 

Thanks in advance!

3 Replies 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team January 18, 2021 12:56 PM UTC

Hi Ben, 
 
Greetings from Syncfusion Support. 
 
We have validated your requirement at our end and suspect that your need is to use the CustomAdaptor with CRUD operations. We have prepared a sample based on that and it can be download from the below link. 
 
 
Kindly refer to the above link and let us know if you need further assistance. 
 
Regards, 
Balasubramanian S

Marked as answer

FP Francesco Pruneri February 4, 2025 10:21 AM UTC

Hi there, my app is work in progress. 

a couple of questions for you. I have searched for the solution on the internet, but I find thousands of nonsensical and completely wrong answers.

in message.Body.Content there is the HTML code. How is it possible to save it in a plain text in a VarChar of my table ? I need to convert it, but i can't find a right solution

attacchments file. Which is the best way to save mail attachment ? 


TXH for all 





AK Ashokkumar Karuppasamy Syncfusion Team February 5, 2025 04:04 PM UTC

Hi Ben Becker,


To save the HTML content in a plain text format into a VARCHAR column in your database, you'll generally want to convert or strip out the HTML tags to keep only the text content. There are various ways to do this, depending on the programming language and libraries you're using.

you could use the HtmlAgilityPack library


using HtmlAgilityPack;

 

var html = message.Body.Content;

var htmlDoc = new HtmlDocument();

htmlDoc.LoadHtml(html);

 

var plainText = htmlDoc.DocumentNode.InnerText;

 

// Save `plainText` to your database



Regards,

Ashok


Loader.
Up arrow icon