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:
After this…