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

Notifications

Announcements

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:
I have the same question (0)
  • v-siky-msft Profile Picture
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard