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 Apps
Answered

Automatic Replies

(0) ShareShare
ReportReport
Posted on by 52

Hello,

Im trying to set up Automatic Replies for out of office within my powerapp.I'm connected to a SharePoint list which users select the date and time they will be out and on submitting it blocks out their calendar. So the next step I would like is for them to be able to set an out of office message when receiving emails. Ideally I would like a predetermined message where they can edit if need be.Im not sure of the proper steps to take to acheive this.

 

Thank You 

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Taylor28,

     

    There is an Office 365 function that you could take use of to set the OOF messages. the function schema is as below:

    Office365.SetAutomaticRepliesSetting(Status,ExternalAudience,{ScheduledEndDateTimeOffset:"",ScheduledStartDateTimeOffset:"",InternalReplyMessage:"",ExternalReplyMessage:""})

    Status value:

    AlwaysEnabled,

    Disabled

    Scheduled

     

    ExternalAudience:

    All

    ContactsOnly

    None

     

    For the StartDate, EndDate, and the Internal, external replies, all could be configured to accept control values.

    So the implementation should be as below:

    1. Add two dropdowns for Status and External Audience,

    For Status dropdown, items set to:

    ["AlwaysEnabled","Disabled","Scheduled"]

    Default value set to "AlwaysEnabled"

    For External Audience dropdown, 

    Items property set to:

    ["All","ContactsOnly", "None"]

    Default set to "All".

    2. Add two DatePicker control for Start and End Date, two TextInput control for the replies.

    then the function should be implemented as below

    Office365.SetAutomaticRepliesSetting(Dropdown1.Selected.Value,Dropdown2.Selected.Value,{ScheduledStartDateTimeOffset: DatePicker1.SelectedDate,ScheduledEndDateTimeOffset: DatePicker2.SelectedDate,InternalReplyMessage:TextInput1.Text,ExternalReplyMessage:TextInput2.Text})

    Image reference:

    OOF.gif

     

    Regards,

    Michael

  • Taylor28 Profile Picture
    52 on at

    Thank You so much!,works beautifully.

  • Taylor28 Profile Picture
    52 on at

    Hello,

    Quick Question everything works as it should ,however when I select the two dates from the date picker and check my outlook it shows as a day ahead. For example if I selected for my automatic replies to be from 4/17/2019-4/26/2019 my outlook automatic replies show as 4/16/2019-4/25/2019.Do you think you know why that might be?

    Reply.PNG
    automatic.PNG
  • octu Profile Picture
    7 on at

    Hi,

    Is there a way to know the actual status of OOF ? I want to Disabled/Enabled OOF with Microsoft Flow each day if OOF is Enabled.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard