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 / SharePoint comments fi...
Power Apps
Answered

SharePoint comments field incorrectly adding comments to all items in the list

(0) ShareShare
ReportReport
Posted on by 5

i have a 4 screen SharePoint integrated PowerApp. that has a html comments page that is suppose to allow users to comment on gallery selected or sharepoint selected items. it will show the comment has been saved but append it to  all the items in the list not just the selected one 

 

here is my patch command for the submit button 

RoderickF01_0-1681163671888.png

 

here is the htmlcomments box 

RoderickF01_1-1681163811048.png

 

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @RoderickF01 ,

     

    There are a few points that may need attention:

    1\galleryName.Selected cannot be empty or blank

    2\There is a problem with the syntax of If 

    right syntax

    If( 
     Condition1, 
     ThenResult1, 
     Condition2, 
     ThenResult2,
     DefaultResult 
    )

    3\There is a problem with the syntax of Patch

    vbofengmsft_3-1681177634679.png

     

    Please try this formula:

    Patch(
     'DataSource',
     If(
     IsBlank(SharePointIntergration.Selected)||IsEmpty(SharePointIntergration.Selected),
     galleryChangeRequestLog.Selected,
     SharePointIntergration.Selected
     ),
     {
     'QA XX':XXX
     }
    )
    

     

    Best Regards,

    Bof 

  • RoderickF01 Profile Picture
    5 on at

    this worked well thanks for catching this 

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard