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

attendance control

(0) ShareShare
ReportReport
Posted on by 212

Hello Community,
my boss has a meeting every morning. the heads of other departments take part in the meeting, e.g. HR or marketing. he now wants to have an attendance check, which department is present. i have created a sharepoint list with column "date" (setting is date and time) then a column with marketing, logistics (setting is YES or NO). The attendance check should simply be created in powerapps on a page where the names of the departments are and next to it you should click if they are present. when you are done you should click on a button and the content will be transferred to sharepoint. @BCBuizer

 

Picture 1.PNG
Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    This seems like a great time to use a form actually. I generally like to build my own forms but this seems pretty simple and cookie cutter.

     

    Make a list with columns like you have in your image. A date and then each dept for example. 

    In your app, drop in a new form and and it should have all the controls built out for you already. You can then just use SubmitForm(YourFormName) to submit the attendance to the SP List.

  • Adinator Profile Picture
    212 on at

    HI @mmollet ,

    can you please show me exactly how you mean it.

  • mmollet Profile Picture
    3,187 on at

    Sure!

     

    1. Create a SP List with columns MeetingDate, and then one for each of your departments at the meeting. (do not just use Date as the column name as that is a reserved word in Power Apps and most other programming and could cause issues at a later point in the app)
    2. Create a screen on your app and select insert and then select Edit form from the Popular category. This will drop in an edit form onto your screen. 
    3. Now you will want to select the form and on the right hand side properties tab find the default mode and change it to new. (should be edit to start with)
    4. now where it says data source in that menu, click the dropdown and either select your SP list or if it does not show up then do the following:
      1. click add data at the top of your screen. in the search bar type SharePoint and then scroll all the way down. You should see Share-Effect, SharePoint, Short URL etc. Click on SharePoint. Follow the steps to link your SP list to your app then repeat step 4.
    5. Now drop in a button or text box whichever you prefer. In the OnSelect property of that control add the following code: SubmitForm(YourFormNameHere)
    6. Now click the form again. In the top left of the screen hit the dropdown and click the property called OnSuccess. This is where you will want to add code if you want anything to happen once the form is submitted. For example if you want the user to be taken back to the home screen then: Navigate(HomeScreen) should be added to the OnSuccess property of the form. 

    Let me know how this goes! We will get you up and running today for sure! 🙂

  • Adinator Profile Picture
    212 on at

    Hi @mmollet , so right it has unfortunately not worked. I have made a screenshot and hope that you can help me here. I have it in german. please don't get confused.

    Picture 2.PNG
  • Verified answer
    mmollet Profile Picture
    3,187 on at

    No problem! You will want SubmitForm(Form1) in your case or you will have to rename Form1 to match what you have in your SubmitForm function

  • Adinator Profile Picture
    212 on at

    Thanks, but when I press the button, the page disappears. Do you have any idea how I can get to the home page after running it?

  • mmollet Profile Picture
    3,187 on at

    Yeah sure go to the OnSuccess Property of the form itself and add a navigate function to your home screen there.

    OnSuccess of form -> Naviagte(HomeScreen)

     

    Also here is what I did to get the sort you wanted to work for me:

    Screen's OnVisible property: ForAll(Distinct(Test,FirstName) As record, Collect(topIndex, LookUp(Sort(Test, order, SortOrder.Descending), FirstName = record.Value)))

    Gallery's Items property: topIndex

     

    What this is doing is running a forall function over every distinct name in my SP List. In this forall function I am collecting the highest indexed item to a local collection for each person. At the end all we are left with is the top index for each unique user. This will have to be modified slightly to work in your app but I have tested this on my end and it works very well. 

     

    Here is the gallery populated with the code above. This can be compared to the SP list below to validate results.

    Screenshot 2023-05-02 at 1.40.08 PM.png

     

    This is the SP list data that I am using to test this solution. Yours will be different obviously but this should help you see what I did with the code. 

    Screenshot 2023-05-02 at 1.40.30 PM.png

     

    EDIT: I posted this as an answer to another question here in this thred. Sorry for the confusion!! @Adinator im sure you were wonder wth is this guy talking about lol 😂 sorry about that!

  • Adinator Profile Picture
    212 on at

    no, i am not looking for that, when i click on the button that adds the content to sharepoint then it should also jump back to the home page.

  • mmollet Profile Picture
    3,187 on at

    Naviagte(HomeScreen) will need to be added to make that happen. You can add this to the onsuccess of a form for example or add it at the end of the on select of a button or text control

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 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard