web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Obtain Outlook Calenda...
Power Apps
Unanswered

Obtain Outlook Calendar events and write to SQL

(0) ShareShare
ReportReport
Posted on by 101

I have a basic Time Tracking app with CRUD operations, which is connected to a SQL database. Users create and update records through a form which they can submit.

 

I'd like to add a feature where, by clicking one button, a user can have all of their Outlook Calendar events pulled for a specific day, which the app will automatically write to a SQL table. The only information I need to capture from these events are the day and duration of the meeting. There should be a unique record for each meeting, e.g. if a user had 5 meetings today, it should create 5 separate records.

 

I'm not really sure where to start with this though. The purpose of this new feature is to reduce the amount of time it takes for users to log their activities, so I want to automate as much as possible, i.e. there should be no individual forms to go through.

 

Does anyone have any thoughts?

Categories:
I have the same question (0)
  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello alex93jansen,

     

    I think you could achieve this using Power Automate.

    You could create a Power Automate flow that is triggered from your app.

    Using the Office 365 Outlook connector, you can retrieve the calendar entries in a specific time frame. Then, you can create a record in your SQL database for each entry.

  • alex93jansen Profile Picture
    101 on at

    I thought about that, however the PowerApps (manual) trigger doesn't allow for any input data, e.g. I want users to be able to only write the Calendar data to SQL for the date they have selected. E.g. if it's Tuesday, a user may want to write the event data for Monday, but not for Tuesday because their Calendar can still change throughout the day.

  • joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @alex93jansen,

    Actually the Power Apps trigger should accept parameters. When you set up your flow, you can select "Ask in PowerApps" as a Dynamic Content:

     

    joe_hannes_col_1-1623854507980.png

    When you link your flow in your app, you should be able to provide the input, e.g. a date, as an argument in the Run formula:

    joe_hannes_col_2-1623854580614.png

    You can find more information here (also the source of the pics above): https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard