C
C#2mo ago
Visual Code

Graph API Outlook feature

Hello I'm working on adding a feature to our "On-Call Planner" app and need some advice. 1.Assigned on-call days to appear as all-day events in the personal Outlook calendars of assigned employees. 2.Calendar entries to update with any scheduling changes within 15 minutes. do i have to make a service?
18 Replies
Tvde1
Tvde12mo ago
What exactly is your question?
Visual Code
Visual Code2mo ago
if im using Graph API is it a good idee if i make a service or is there a other "better" way should is just do a method?
Tvde1
Tvde12mo ago
I know graph API is Microsoft's way of interacting with e.g. AAD/Entra information. I don't know if this works for Outlook as well. Are you asking whether there is such a thing for outlook?
WEIRD FLEX
WEIRD FLEX2mo ago
if by service you mean a class, i would say yes
Visual Code
Visual Code2mo ago
Use the Outlook mail REST API - Microsoft Graph v1.0
Microsoft Graph lets your app get authorized access to a user's Outlook mail data in a personal or organization account.
Visual Code
Visual Code2mo ago
("where to beginn")
Tvde1
Tvde12mo ago
is this a school project or for a company? is there a mentor available? In this discord, we are really good at answering specific questions about C# or libraries. Questions like "where to begin" is best suited for a mentor or a senior
Visual Code
Visual Code2mo ago
school/company (hard to say xd) there is not rlly a mentor
WEIRD FLEX
WEIRD FLEX2mo ago
so it's a stage project (google translates it as apprenticeship?)
Visual Code
Visual Code2mo ago
You could say so, yes
WEIRD FLEX
WEIRD FLEX2mo ago
have you used graph api before? have you used graph explorer?
Visual Code
Visual Code2mo ago
not really, i had to update somthing for Graph API no is postman the same thing, bc i used postman (it was a documentation)
WEIRD FLEX
WEIRD FLEX2mo ago
sort of, graph explorer is the microsoft tool for this it gives you a bunch of hints when using graph apis i have used apis for sharepiont and some other stuff, sadly i don't know if their client has the outlook part
Visual Code
Visual Code2mo ago
i will try it
WEIRD FLEX
WEIRD FLEX2mo ago
good luck (edit i see there are some outlook and calendar api, but not much stuff)
Visual Code
Visual Code2mo ago
yeah, but for "send" and "update" there are things and i also found somthing intresting https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-8.0&tabs=visual-studio (not sure if i need this, still reading)
Background tasks with hosted services in ASP.NET Core
Learn how to implement background tasks with hosted services in ASP.NET Core.
Visual Code
Visual Code2mo ago
btw this is my Task:
Goals:
Expand the web application
- Employees assigned to on-call duty see the on-call days assigned to them in their personal Outlook calendar as a full-day appointment. The schedules made in the on-call planner appear as calendar entries in the corresponding employee's Outlook calendar.
- The calendar entries of all affected employees are updated after changes to the planning so that the planning in the application and in the personal calendars match. Shifts and deletions of schedules in the on-call planner are automatically transferred to Outlook.
- Changes to the planning in the on-call planner are transferred to Outlook within 15 minutes.
Goals:
Expand the web application
- Employees assigned to on-call duty see the on-call days assigned to them in their personal Outlook calendar as a full-day appointment. The schedules made in the on-call planner appear as calendar entries in the corresponding employee's Outlook calendar.
- The calendar entries of all affected employees are updated after changes to the planning so that the planning in the application and in the personal calendars match. Shifts and deletions of schedules in the on-call planner are automatically transferred to Outlook.
- Changes to the planning in the on-call planner are transferred to Outlook within 15 minutes.
WEIRD FLEX
WEIRD FLEX2mo ago
hosted service is a service that is automatically started from the framework (for example if you have to poll via graph api) if you just receive events then it depends (big if)