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?
Solved! Go to Solution.
@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.
Here's how the data would look while viewed Sharepoint.
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.
Here's where to find the HTML Text field within the Insert menu.
Let me know if this worked!
@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.
---
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."
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?
@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.
Here's how the data would look while viewed Sharepoint.
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.
Here's where to find the HTML Text field within the Insert menu.
Let me know if this worked!
User | Count |
---|---|
184 | |
122 | |
91 | |
47 | |
42 |
User | Count |
---|---|
271 | |
159 | |
130 | |
85 | |
78 |