web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Convert Column to Plai...
Power Automate
Unanswered

Convert Column to Plain Text and Use in Table

(0) ShareShare
ReportReport
Posted on by

I have tried this a number of ways. I am grabbing a SharePoint list, which has a rich text column. I am trying to convert that to plain text and use it when I build an HTML table. The problem is if I don't create a variable, then when I create my table, I cannot call "the plain text content" that is created in the "for each" action (where the comments column is converted to plain text). 

 

So I have tried to create a variable, if it is a string variable, then it converts to plain text and appends all the comments together as one variable. I tried using the array variable but I am not familiar enough to make this work. Any ideas / work around??

 

Here is my flow...

Flow Screenshot.png

Categories:
I have the same question (0)
  • CollabTechie Profile Picture
    442 on at
  • AlanPs1 Profile Picture
    2,471 on at

    Hi @Anonymous 

    Can you please go to a Flow run and take a screen shot &/or post the JSON from the Get items and tell us the name of the column you are having issues with and I will see if I can recreate?

     

    If you find my posts helpful, please mark with thumbs up

     

    If this solves your issue, please click "Accept as Solution"

     

    Any questions, just ask.

     

    Thanks, Alan

  • Community Power Platform Member Profile Picture
    on at

    Hi @AlanPs1 

     

    You should be able to recreate with any SharePoint list that has a multiline text column type of Enhanced Rich Text.

     

    Type some bulletpoints in the column contents, and then use MS FLOW to try to grab it, convert the text to plain text, and use it when you create an HTML table. 

  • AlanPs1 Profile Picture
    2,471 on at

    Hi @Anonymous 

    It still would be helpful to see your output, although based on what you have said above:

     

    "So I have tried to create a variable, if it is a string variable, then it converts to plain text and appends all the comments together as one variable. I tried using the array variable but I am not familiar enough to make this work. Any ideas / work around??"

     

    So sounds like you are getting the plain text.

     

    Please see this post.

     

    https://powerusers.microsoft.com/t5/General-Power-Automate/How-to-split-a-text-to-a-JSON/m-p/373642#M31549

     

    Assuming you wanted to break on a carriage return and create an array that in turn you could work with, please try something like what's in the post.

     

    This is what I would do regularly.

     

    If you find my posts helpful, please mark with thumbs up

     

    If this solves your issue, please click "Accept as Solution"

     

    Any questions, just ask.

     

    Thanks, Alan

  • Community Power Platform Member Profile Picture
    on at

    @AlanPs1 

    Sorry, didnt paste the code due to some company specific info

     

    The JSON split sounds like a pretty complicated way to get my plain text out of the "for each" loop. I guess I could, but I would have to split it on each new list row. There is no specific character to split it on.

     

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

    Please try the following methods to achieve your needs.

    1. Initialize array variable to store the data that needs to be displayed in the table.
    2. Append the fields that need to be displayed in the table to the array in JSON format.
    3. Then use the array variable as the data source to create the HTML table.

    Image reference:

    82.PNG

    Details in Apply to each:

    83.PNG

    Hope it helps.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    @v-bacao-msft 

     

    Beautiful! Thanks a lot. The next bit that tripped me up was calling the column from the array in the "Create_HTML_table" action. For anyone else looking for this solution here is how I did it. 

     

    Flow Screenshot.png

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard