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

More About This Author

Inogic
Inogic is one of the leading Microsoft Dynamics 365 ISV since 10+ years. Its flagship product Maplytics™ is a market leading certified (CfMD) geo-analytical mapping app. Maplytics empowers Dynamics CRM users across industries with the power of geographical data visualization, route optimization and along the route search with turn-by-turn directions, appointment planner, locational search by radius and shapes with drill-down filters and color-coded pushpins, heat maps, shape layers & territory management.
 
Inogic is renowned for its high quality and low-cost offshore development services and productivity apps like InoLink: QuickBooks + Dynamics CRM, User Adoption Monitor, Attach2Dynamics, Alerts4Dynamics Click2Export, Click2Clone, Kanban Board, SharePoint Security Sync, Lead Automation & Distribution, Map My Relationships, Auto Tax Calculator, Subscription and Recurring Billing and Marketing4Dynamics.

Author: Inogic

Inogic is one of the leading Microsoft Dynamics 365 ISV since 10+ years. Its flagship product Maplytics™ is a market leading certified (CfMD) geo-analytical mapping app. Maplytics empowers Dynamics CRM users across industries with the power of geographical data visualization, route optimization and along the route search with turn-by-turn directions, appointment planner, locational search by radius and shapes with drill-down filters and color-coded pushpins, heat maps, shape layers & territory management.   Inogic is renowned for its high quality and low-cost offshore development services and productivity apps like InoLink: QuickBooks + Dynamics CRM, User Adoption Monitor, Attach2Dynamics, Alerts4Dynamics Click2Export, Click2Clone, Kanban Board, SharePoint Security Sync, Lead Automation & Distribution, Map My Relationships, Auto Tax Calculator, Subscription and Recurring Billing and Marketing4Dynamics.

Share This Post On
Share via
Copy link
Powered by Social Snap