Empty Rich Text Fields Validation using Regular Expression in Dynamics 365



Empty Rich Text Fields Validation

In the pursuit of enhancing data management within Dynamics 365 CRM, we recently integrated a ‘Rich Text Editor Control‘ into the Description field of the Appointment entity, and inserting text into the description, we observed an unexpected behavior. Upon exporting the data from Dynamics 365 CRM, we noticed that the Description field stored the text along with HTML tags. Surprisingly, even when we cleared the text from the Description field, the HTML tags persisted in the system. This discrepancy became evident when attempting to fetch records with empty Description fields, as the presence of HTML tags prevented these records from being retrieved. Additionally when we wanted to validate if a field of a record Is blank then this discrepancy resulted in inaccurate validation.

In this blog post, we delve into the intricacies of validating whether a Rich Text field truly contains a value using regular expressions in C#.

Let’s consider a use case scenario where a user inputs the…



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...