web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Facing issue while retrieving text using fetchxml

(0) ShareShare
ReportReport
Posted on by 47

Hi,

We are facing issue while retrieving text using fetchxml.

Scenario: We have implemented search bar using angular in which we have to search for a word or any other symbols and need to highlight that word or symbol.

We are retrieving the description field value that is present on the email entity. This field is a Microsoft OOB control which is Rich Text Editor to add font size, color, images, and so on. It stores data in html format.

Problem: Whenever we search in description it searches in the html as well, which should not happen.

E.g. In the below email description, the slash or div are present in the background value but not on the front end value.

 pastedimage1674036597460v1.png

If we search “/” or “div” then above email is also retrieving.

We want to retrieve only those emails who has “/” or “div” present in their text and not in the html.

We thought to store the innertext value in a new field. For retrieving we use that value.

E.g. retrieve email contains ikl_plaindescription eq “/”.

For highlighting the text we are replacing the searched value with <span style= “background-color :yellow”> searched value </span>.

Because the html contains ”/”, the slash before the closing div tag also gets replaced which in turn generate incorrect html

We tried using few regex expressions which didn’t help.

Thanks

I have the same question (0)

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 121

#2
ManoVerse Profile Picture

ManoVerse 67 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans