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 / Append to existing Sha...
Power Apps
Unanswered

Append to existing SharePoint list row if date already exists.

(0) ShareShare
ReportReport
Posted on by 225

I have a form that consists of a "Date Picker" and then several "Text Inputs".  Upon submitting the form, the sharepoint list is updated.  Is there a why that if a user selects a date from the date picker that already has a row in the sharepoint list, instead of created a new row when they submit the form it, simply appends the new text in the form to the end of the already submitted data in the sharepoint list.

Thanks in advance.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @StuartSmith 

    You can set a condition on a button for submitting data.

     

    If(
     IsBlank(Lookup(SPlist,somedate=DatePicker.SelectedDate),
     Patch(
     SPlist,Defaults(SPlist),{field1:Textinput1.Text,field2:Dropdown1.Selected.Value,etc}
     ),
     Patch(
     SPlist, Lookup(
     SPlist, somedate=DatePicker.SelectedDate
     ),{field1: Textinput1.Text, field2: Dropdown1.Selected.Value, etc}
     )
     )

     

    This formula tests to see if there is a field that matches the datapicker control's date and if not, creates a new item,  If there is already an item that matches the date selected in the datepicker, then it will modify that item.  

  • StuartSmith Profile Picture
    225 on at

    Thanks for responding so quickly.  I'm just trying to work out your code...

    Upon entering my code, I get an error

     

    error.png

     What am I doing wrong? on your code you put "somedate=datepicker.selected", what do you mean by "somedate"? I put the name of the sharepoint date column.  Is that correct?

    Thanks in advance

     

     

     

  • StuartSmith Profile Picture
    225 on at

    @Drrickryp are you able to help with the below? 

    Thanks 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

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard