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 / UpdateIf and RemoveIf ...
Power Apps
Answered

UpdateIf and RemoveIf based on the values of Multiple lines of Text column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

 

Im trying to add and remove a person base on the values of the Multiple line of text type column "Projects".

This is the values of my Projects column 

bpplls_0-1680596757551.png


ang this is the code im currently using 

 UpdateIf(Container1, Projects="mkDad",
 {Members:
 Ungroup(
 Table(
 {Item: 
 Table(
 {
 '@odata.type': "#Microsoft​.Azure.Connectors.SharePoint.SPListExpandedUser",
 Department: "",
 Claims: Dropdown6.SelectedText.Value,
 DisplayName: "",
 Email: "",
 JobTitle: "",
 Picture: ""
 }
 )
 },
 {Item: Members}
 ),
 "Item" 
 
 )
 }
 )
);

the problem is the update only works on the first value of the Projects column which is "BbSsE" 

Any help would be much appreciated. Thank you

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

    Hi @Anonymous ,

     

    Could you please share more details about your scenario? The criteria within the UpdateIf function only represents when project is equal to mkDad. But as you mentioned that project is a multiple lines of text column, if you would like to update items that project column include "mkDad", please try below formula:

     

     UpdateIf(Container1, "mkDad" in Split(
     PlainText(Substitute(Substitute(Projects,"<p>","<br>"),"</p>","")),
     Char(13)
    ),
     {Members:
     Ungroup(
     Table(
     {Item: 
     Table(
     {
     '@odata.type': "#Microsoft​.Azure.Connectors.SharePoint.SPListExpandedUser",
     Department: "",
     Claims: Dropdown6.SelectedText.Value,
     DisplayName: "",
     Email: "",
     JobTitle: "",
     Picture: ""
     }
     )
     },
     {Item: Members}
     ),
     "Item" 
     )
     }
     )
    );

     

    Best regards,

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard