Power Pages: Display images from a Rich Text field using Liquid

michelcarloModern Workplace5 months ago7 Views



Dataverse Rich Text fields store the content as HTML text in the field itself but the images that are uploaded are stored as attachments in the Rich Text Attachments table (msdyn_richtextfile).

Those files are referenced directly with the URL to get the preview as image from the WebAPI, when we open them from a Model Driven app they work fine since we have access to the Dataverse Web API.

But when we try to render those images that are referenced on Rich Text Fields in Power Pages by using custom Web Templates or Pages developed with Liquid, the images won’t render correctly because the API endpoint differs and also we need to enable table permissions.

See sample below:

Enable the Rich Text Files table and Setting permissions

To enable the default Rich text files table we can follow the official Microsoft Documentation:

Add permissions for the Rich Text Attachments Table

And also enable the Table for Web API access:

Add Web API Site setting

After this…



Source link

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
February 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28   
« Jan   Mar »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...