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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Improve CRM Email smart matching (Regex not working)

(0) ShareShare
ReportReport
Posted on by 886

Im trying to improve the regex for email matching (Im not running the tracking token).

We have some case registration build (Custome entity). Each case get a unique increasing number. We send emails from that entity and use the unique number in the subject.

The problem is that when users answer the emails they are not always getting tracked. It can be many reasons, ex. addin small changes to the subject or adding additional contacts to the mail.

My idea was to improve the regex to leave anything out besides the unique case number -> maybe it should be "Case # Case number" (To make it more precise). The case number can be either 4 or 5 digits.

A typical subject could be: "Case # 4.2345 // Title from the case and maybe some other reference (33243)".
If that email is answered it can be "RE; Case # 4.2345 // Title from the case and maybe some other reference (33243)". 
Or maybe a user also add something to the subject "RE: Case # 4.2345 // Title from the case and maybe some other reference (33243) users have now added a new number 45 that will typially break the matching".

The regex will then have have to filter anything out besides "Case # 4.2345 //" But i ca not get the regex working. Is it even possible to create such regex (As far as i understand it will have to filter out anything before "Case" and anything after the "number". (maybe the first time "//" appear that than be used to filter out anything after / to the right"). And yes if the user messes with the case number then it doesn't work - but that is acceptable.

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 91

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 89 Most Valuable Professional

#3
11manish Profile Picture

11manish 71 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans