Skip to main content
Community site session details

Community site session details

Session Id : RJbPDppRmAkET8Kh/btiBQ
Power Apps - Building Power Apps
Unanswered

Paste screenshot into rich text editor field into sharepoint list multiline field

Like (1) ShareShare
ReportReport
Posted on 9 Jul 2024 09:40:32 by 295

I have couple of multi line (enhance rich text) field in sharepoint list ,
I have refer a video of Shane which converts b64 into binary .
Most of the part is done , the only place I'm facing problem is

With({varHTMLTableInhalts:Split(RichTextEditor3.HtmlText,"<img")},
        If(CountRows(varHTMLTableInhalts)>1,
        With({varB64start:Find("<img",RichTextEditor3.HtmlText)+33},
        With({varB64End:Find("""",Mid(RichTextEditor3.HtmlText,varB64start))-1},
        With({varFileLink:B64ToBinary.Run("Paste" &Text(Now(),"dd/mm/yyyy")&".png",Mid(RichTextEditor3.HtmlText,varB64start,varB64End)).biinaryoutput},
        Set(varInhalt,"<div>"& Replace(RichTextEditor3.HtmlText,varB64start-22,varB64End+22,varFileLink)&"</div>")))),Set(varInhalt,RichTextEditor3.HtmlText))))
 
Patch(XYZ,Thisrecord,{Multiline field : varInhalt});

So my field value is <div><img src="https://abc.com/sites/APE/RichImage/Paste09_07_2024.png" /></p></div>

This value is not converted into html code rather string value.
When I'm passing <div><img src="https://abc.com/sites/APE/RichImage/Paste09_07_2024.png" /></p></div> its getting converted as &lt;div&gt;&lt;img............... while viewing the record.
Please help how can I go ahead with it.

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!