cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MjnMixael
Level: Powered On

Display complex data in Sharepoint Form

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?

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Level 8

Re: Display complex data in Sharepoint Form

@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!

3 REPLIES 3
mdevaney
Level 8

Re: Display complex data in Sharepoint Form

@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
Level: Powered On

Re: Display complex data in Sharepoint Form

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?

mdevaney
Level 8

Re: Display complex data in Sharepoint Form

@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!

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 452 members 4,568 guests
Please welcome our newest community members: