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 / Sharepoint and powerap...
Power Apps
Answered

Sharepoint and powerapps calendar

(0) ShareShare
ReportReport
Posted on by 7

 

Hello I am trying to allow user to only submit Start date and time once. I am using SharePoint Calendar and submitting the form using powerApps

Categories:
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    @Gene1 

     

    How do you want to submit the events? By EditForm or Patch function?

    ''I also would like to have the end date be the same as start date. However be able to put start time and date.' - What does this sentence mean?

    If you want to use EditForm, try to add judgment condition to OnSelect property of submit button, if the schedule is repeated, show an error notification, else then submit the form.

     

    ClearCollect(ColLocation,Filter('Calendar Name',Location =Location_DataCard1.Update ));If('End Time_DataCard1'.Update in Filter(ColLocation, 'Start Time'='Start Time_DataCard1'.Update).'End Time',Notify("Schedule Repeated",NotificationType.Error),SubmitForm(FormName))

     

    Snipaste_2020-01-31_21-25-45.png

    Sik

     

  • Gene1 Profile Picture
    7 on at

    Hello Sik,

     

    Thank you for this solution! It partially works, for example:

    If I add 7am-8am and try to add the time again does not let me submit the form which is awesome. However, If I add 7am-9am and then 7:30am-8am let's me submit even though the 7am-9am time frame is already reserved.

     

    Are you able to give a work around for this issue?

     

    Thank you in advance @v-siky-msft 

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Ok @Gene1 

    I have changed the logic, please try this:

    ClearCollect(ColLocation,Filter('Calendar Name',Location =Location_DataCard1.Update )); Clear(ColTest);
    ForAll(ColLocation,If('End Time_DataCard1'.Update<='End Time' && 'Start Time_DataCard1'.Update >= 'Start Time', Collect(ColTest,true)));
    If(true in ColTest,Notify("Schedule Repeated",NotificationType.Error),SubmitForm(FormName))

    Sik

  • Gene1 Profile Picture
    7 on at

    Thank you, it is working well so far! Truly appreciate your help @v-siky-msft 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard