Comments (6)
Hi @CorithMalin82,
Unfortunately, I don't think this scenario will work. When Outlook on Windows launches your code to handle an event it uses a plain JavaScript engine. There's no UI or browser runtime, which likely Blazor WebAssembly would expect.
It's possible it might work in Outlook on the browser. In that case Outlook will use the browser to run your event code. Have you tried that scenario?
@aafvstam do you have any ideas here?
Thanks!
David
from office-add-in-samples.
Hi @davidchesnut,
We were testing in the browser and on Windows Desktop with Outlook 365. Both would work with a TaskPane but neither would work when trying to use the OnMessageSend
feature. I suspect you're right on about the UI or browser runtime, as the issue we've encountered is an inability to get the blazor app to load because it seems it's never being hit.
Do you know if Blazor apps for the OnMessageSend
feature are in the works? It would enable my company to drastically speed up the processing of our web add-in as right now we end up having to do the processing remotely using the GraphAPI instead of locally via JavaScript. It would also save us compute resources as we could do our processing on the client's computer instead of in our clouse services.
Thanks for your thoughts and comments.
from office-add-in-samples.
Hi @CorithMalin82, thanks for sharing your scenario. I found this documentation on Blazor webassembly which I think confirms it is dependent on a DOM (from diagram and descriptions). I know the JS Runtime used for Outlook events doesn't have a DOM. I do have a question out to the Blazor team to see if there is any workaround, and will post an update if I find anything. Unfortunately for now, I don't think it's possible.
from office-add-in-samples.
Related Issues (20)
- Outlook on window How to embed into WPF projects? HOT 1
- VersionOverrides link is broken in samples HOT 3
- Getting the text to the cursor position HOT 2
- DotNet.createJSObjectReference() TS Type HOT 3
- Debugging Blazor Addin project HOT 11
- DotNet.invokeMethodAsync function disabled with .NET 7 RC2 and 8 p5 in a Blazor addin project HOT 3
- Office-Add-in-Microsoft-Graph-React - production redirectUri HOT 2
- what are the exact prerequesites to install/side-load an Outlook add-in? HOT 19
- .NET7.0 rc2 threads disable WASM Blazor HOT 2
- Missing c# breack points HOT 5
- Tutorial for excel insert file doesn't work HOT 6
- outlook-set-signature - Unable to get to run HOT 2
- Example for MS projects? HOT 1
- Excel does not launch when running the sample HOT 11
- idMSOs in PowerPoint? HOT 4
- How can I get access token for multiple resources based on sample Office-Add-in-Microsoft-Graph-React HOT 16
- how to uninstall the Web-Addin in Excel-Online if installed the way by uploading an manifest.xml HOT 1
- excel-insert-file not working as expected HOT 3
- How can we test outlook add-in in Visual Studio HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-add-in-samples.