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 / Including Notes into S...
Power Apps
Answered

Including Notes into SharePoint List when Using Buttons

(0) ShareShare
ReportReport
Posted on by 30

Hello, 

 

I am creating an app to check-in & out clients of my organization. I have the check-in and check-out buttons working correctly but I am trying to include notes feature that will allow users using the app to include notes when checking clients out. 

 

Here is what I have so far but I am having difficulty creating the correct function. 

OnSelect Check-Out Button:

Set(varNewItem, Patch('Client Checked In/Checked Out',Defaults('Client Checked In/Checked Out'),{Title:User().FullName,Client: DataCardValue3.Selected,'Checked Out': Now(),'Off Property':true,'Client Notes':"Okay"}))

 OnSelect Function Check-Out ButtonOnSelect Function Check-Out Button

 

Any corrections, comments, or questions would be helpful!

Categories:
  • LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

    What's wrong with your formula? Not saving the note?

  • groovygator Profile Picture
    30 on at

    Hello, 

    Yes, I'd like to save notes that are typed in the 'Client Notes' section into the SharePoint list when the Check-Out button is pressed. Currently the note saves "Okay" as written in the formula <'Client Notes': "Okay">. I would like to save what is typed in the client notes section of the app into SharePoint instead of "Okay."

    Set(varNewItem, Patch('Client Checked In/Checked Out',Defaults('Client Checked In/Checked Out'),{Title:User().FullName,Client: DataCardValue3.Selected,'Checked Out': Now(),'Off Property':true,'Client Notes':"Okay"}))

     

    I attached a more current preview of the app that includes a notes section. 

    CheckOut_ClientNotes App.PNG

  • Nicklas_Hansen Profile Picture
    21 on at

    Assuming Label2 is the notes label, this should do the trick: 

    Set(varNewItem, Patch('Client Checked In/Checked Out',Defaults('Client Checked In/Checked Out'),{Title:User().FullName,Client: DataCardValue3.Selected,'Checked Out': Now(),'Off Property':true,'Client Notes':Label2.Text}))
  • groovygator Profile Picture
    30 on at

    It is DataCardValue1 is the notes text entry. I thought a similar thing and used this formula before but am having an error. I have tried it with and without the ParenClose and still get an error. <'Client Notes': DataCardValue1.Text> and <Client Notes: DataCardValue1.Text>

     

    CheckOut Button OnSelectCheckOut Button OnSelect

  • Nicklas_Hansen Profile Picture
    21 on at

    Hmm what error are you getting? Can you try to input something and then go back out and highlight the "DataCardValue1.Text" in your patch to see if it contains anything? 

  • groovygator Profile Picture
    30 on at

    The error when inputting <'ClientNotes': DataCardValue1.Text is

    _____

    The type of this argument 'ClientNotes' does not match expected type 'Text'. Found type 'Error'.

    The function 'Patch' has some invalid arguments.

    ____

  • Nicklas_Hansen Profile Picture
    21 on at

    You could try explicitly converting the value of 'DataCardValue1.Text' to a text value using the Text function, like this: 

    Text(DataCardValue1.Text)
  • Verified answer
    groovygator Profile Picture
    30 on at

    I was able to find the solution to the issue. Labeling the DataCardValue1 as Value allows me to input text into the text box and it submit to the SharePoint list when the check out button is pressed. 

     

    Set(varNewItem, Patch('Client Checked In/Checked Out',Defaults('Client Checked In/Checked Out'),{Title:User().FullName,Client: DataCardValue3.Selected,'Checked Out': Now(),'Off Property':true, 'ClientNotes': DataCardValue1.Value}))

     

    Thank you for all the feedback. @Nicklas_Hansen 

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard