Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

A solution for multi substitute text using a table (collection) for character mapping

(0) ShareShare
ReportReport
Posted on by

pre: sorry for my english 😁

 

I had a problem that using json in utf-8, certain characters were not accepted. Since there is no "ready" solution, I tried to find one that was effective and maintainable over time.

 

in this case I used a table in dataverse (which I then load into collection) where in the column (origin) I put the character that I have to replace and in the destination column its corresponding

apellizzari_0-1666704245858.png

This is the formula i used :

Concat(Split(testo_ck.Text;"") As tb_tmp;If(Find(tb_tmp.Result;Concat(coll_sost;Origine;""))>0;LookUp(coll_sost;Origine=tb_tmp.Result).destinazione;tb_tmp.Result);""))

 

testo_ck.Text : is the text_label containg the original value to be converted

coll_sost: is the collection of the "translating" table

Origine: name of the colum containing the original value (to be sobstutited)

destinazione: name of the column containig the destination value 

 

hope could be useful for someone

 

 

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: A solution for multi substitute text using a table (collection) for character mapping

    Hi @apellizzari,

    Thanks for your sharing.

    I will mark here to close this case and solved status could help more users who may have the similar issue.

    Thanks for your contribution on Power Apps again.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz โ€“ Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Communityโ€ฆ

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard