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 Apps / Display complex data i...
Power Apps
Answered

Display complex data in Sharepoint Form

(0) ShareShare
ReportReport
Posted on by 5

I have two use cases where I'm storing sets of data as a JSON array in a multi-line text field. I do this for Flow so I can pull it back out and find what I need and change things as necessary.

 

However, I'd like to display this data correctly in the Sharepoint View Form as edited by PowerApps. I didn't see a way to display JSON data nicely, which makes sense. So in Flow, I break out that data and save it in a different multi-line text field that should be more readable.

 

 

Name, time <br>
Name, time <br>

 

Or

Name, time <br>
---Comment <br>
Name, time <br>
---Comment <br>

The problem I'm having is that Powerapps HTML and RichText view fields are not respecting new lines. I've tried <br> and just a new line in the Flow Comp (which does indeed save correctly in Sharepoint). Neither works to clean up the display. I end up with...

Name, time <br>---Comment <br>Name, time <br>---Comment <br>

It word-wraps as necessary. However this isn't terribly readable. Is there a way I can get the working?

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @MjnMixaelto display the HTML new lines you'll have to save the data into a single-line text column within Sharepoint.  The HTML will only be interpreted if its stored in plain-text.  Rich-text won't work here.

     

    Why not save the data into the Sharepoint List twice?  Once in a single-text column and again in a multi-line column.  You'll have readability and useablity: the best of both worlds. Smiley Happy

     

    ---

    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly.  If your thought the post was helpful please give it a "Thumbs Up."

  • MjnMixael Profile Picture
    5 on at

    I used multi-line because I'll probably go over the 255 character limit of single line. However, iirc, I can set multi-line to plain text. You think that will work?

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @MjnMixael if your JSON is greater that 255 characters then yes, you should should store the data in a multiple-line Sharepoint column as plain text just like the picture below.

     

    img2.png

     

    Here's how the data would look while viewed Sharepoint.

     

    img1.png

     

    And here's how it looks in the PowerApp.  My gallery has the SP List JSONList as the datasource.  Then I added a HTMLText field and set the Text property to ThisItem.JSONified.

     

    img3.png

     

    Here's where to find the HTML Text field within the Insert menu.

     

    img4.png

     

     

    Let me know if this worked!

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard