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 Automate / Checking whether a mul...
Power Automate
Unanswered

Checking whether a multi-line text field in SharePoint is empty

(0) ShareShare
ReportReport
Posted on by 10
Hi community,
 
I have a flow that updates a SharePoint list item. I only want to populate the fields with data if every field is blank (I have one single-line text field, and the others are multi-line text). This works fine when I create a new item and leave every field blank; however, if I modify an existing record by deleting text from the multi-line text fields, the process often fails.
 
It appears that SharePoint saves HTML for the multi-line text field even after the text has been removed. In the below output from a compose action, multi-line text fields 1, 4, 5 should ideally equal null:
 
{
  "Single_Line_Text": "Here is some text.",
  "Multi_Line_Text1": "<div class=\"ExternalClass0D7600878D4544FC9EC68343A617615A\"><br></div>",
  "Multi_Line_Text2": "<div class=\"ExternalClass6951CE51D8344950B25A3E11C3E2157D\">This field has text in it.</div>",
  "Multi_Line_Text3": "<div class=\"ExternalClassF1667655C0704D4A93E854B419513FF9\">This field has text in it.</div>",
  "Multi_Line_Text4": "<div class=\"ExternalClassA1A81EDC545240F7AAE557634E6D1F0F\"><br></div>",
  "Multi_Line_Text5": "<div class=\"ExternalClass4E58EDC2662C4CAA8357A076F0D97D85\"><br></div>"
}

 

Note that, when editing the field, I can remove the hidden HTML by pressing backspace/delete an additional time, but I know end users won't necessarily do that.

 

Does anyone have any ideas for removing or working around this HTML to check whether the field is empty?

 

Thank you!

Categories:
I have the same question (0)
  • pstudart Profile Picture
    52 on at

    I would recommend clearing it using a event handler.

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 Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 344 Super User 2026 Season 1

Last 30 days Overall leaderboard