I am trying to add HTML to a Dataverse table. I swapped out the default text field in the data card with a Rich text Editor. I don't see an update property for the data card now, Is adding the rich text editor the cause? If so, how can I add rich text to a Dataverse table?
Yes, replacing the default text field in a data card with a Rich Text Editor (RTE) in Power Apps can cause the Update property of the data card to be missing or not functioning as expected. This happens because the Rich Text Editor is not directly connected to the data card's DataField property. Here's how you can resolve the issue and properly save rich text to a Dataverse table:
Steps to Add Rich Text to a Dataverse Table
1. Configure the Rich Text Editor Control
Insert the Rich Text Editor into the data card.
Name the Rich Text Editor control (e.g., RichTextEditor1).
2. Manually Set the Data Card's Update Property
The Update property of the data card is what determines the value saved to the Dataverse column. You need to link the Rich Text Editor's HtmlText property to the data card’s Update property:
Select the data card that holds the Rich Text Editor.
In the Update property of the data card, set it to:
RichTextEditor1.HtmlText
3. Verify the DataField Property of the Data Card
Ensure that the data card's DataField property matches the Dataverse column where you want to save the rich text. For example, if the Dataverse column is named Description, set the data card's DataField property to Description.
4. Adjust the Default Property of the Rich Text Editor
To load existing data from the Dataverse table into the Rich Text Editor, set its Default property to the field value:
Parent.Default
5. Test the Integration
Add or edit records in the form and save them to verify that the rich text is correctly stored in the Dataverse column.
Retrieve the record and ensure the rich text displays properly in the Rich Text Editor.
Please clickDoes this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
Was this reply helpful?YesNo
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.