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 / Overtime repeating sec...
Power Apps
Answered

Overtime repeating section

(0) ShareShare
ReportReport
Posted on by 105

Hi,

I try to create an overtime request form. I like to let users submit multiple dates in one request.

but I don't know how to submit it in SharePoint. Each date should submit as a separate record in sharepoint.

Would someone help me? 

Setayesh2_0-1645424810690.png

 

Setayesh2_1-1645424852420.png

Thanks in advance

 

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

    Hi @Setayesh2 ,

     

    Maybe you could consider creating a collection to store multiple times and then use the ForAll() and Patch() function to create new records.

    I have made a test for your reference.

     

    1. Here is my SharePoint list.

    vyujincuimsft_0-1645595410150.png

    vyujincuimsft_1-1645595448090.png

    2. Create a Customize forms.

    3. Store the start time and end time in the collection.

     

    Collect(var_time,{starttime:Start_DataCard1.Update,endtime:End_DataCard1.Update})

     

    vyujincuimsft_2-1645595655792.png

    4. Create multiple new records and delete all records in the collection.

     

    ForAll(var_time,
     Patch('overtime request',Defaults('overtime request'),
     {
     Name: DataCardValue2.Selected,
     Manager: DataCardValue3.Selected,
     Department: DataCardValue4.Text,
     Start: starttime,
     End: endtime
     }
     )
    );
    Clear(var_time);ResetForm(SharePointForm1)

     

    vyujincuimsft_0-1645596507666.png

    Result Screenshots:

    vyujincuimsft_4-1645596150440.png

    vyujincuimsft_5-1645596188295.png

    In addition, maybe you need to make some modifications to the formula I provided according to your Form.

     

    Best Regards,

    Charlie Choi

  • Setayesh2 Profile Picture
    105 on at

    @v-yujincui-msft  thanks a lot

  • Lagloire Profile Picture
    86 on at

    @v-yujincui-msft thank you for this support. I'm facing same problem and i will try to implement your solution. Now i have a question, how can be checked automaticaly the date user register in the form comparatively at other date he has previously registered in other sharepoint list?

    I mean, user first has registered date data in  app "A" which was stocked in sharepoint list "A". Now he will register date data in other app "B" which is going to be stocked in sharepoint list "B". The idea is, when he will do the second registering in the app "B", i want to check automaticaly in sharepoint list "A" is the date data is correct or not. If is not correct, a message will be displayed on the app B screen to let him know that his data is not correct. Can you help me with this check and the message to be displayed?

    Thank you in advance.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard