Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Replace/Substitute all values in a Collection Column

(0) ShareShare
ReportReport
Posted on by 178

Hi Guys,

 

I want to find and replace a string in all rows in a particular column.

 

For example replace the string "be" with "" for all values in column "Task".

Tried the below code although doesn't work.

 

UpdateIf(Col,
"be" in Task,
{Task: Substitute( "Task", "be", "" ))}
)

 

Any help is greatly appreciated.

 

Thanks

  • christian12 Profile Picture
    christian12 178 on at
    Re: Replace/Substitute all values in a Collection Column

    @v-liwei-msft thanks. 

     

    Just wanted to confirm that this function is available and thats the correct formula structure. I will give it a try and hopefully i get the correct results.

     

  • Verified answer
    v-liwei-msft Profile Picture
    v-liwei-msft on at
    Re: Replace/Substitute all values in a Collection Column

    Hi @christian12 

     

    Please modify your formula to:

    UpdateIf(Col,
    "be" in Task,
    {Task: Substitute(Task, "be", "" )}
    )

     

    Best Regards,

    Levi

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard