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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

get a list of previous incomming emails

(0) ShareShare
ReportReport
Posted on by 230

Hi guys, 

All my incoming email go into a queue. 

I get automatic alerts from customers (like power fail and power restore) and would like to match them up and eliminate them. 

some times during the night there are hundreds of these emails and the task is boring for my staff to clean.

I already have a plugin that does things when an email comes in but  i'm not sure what to query to get a list of emails that are still in the queue (have not been cleaned yet)

My Plan is to act when I get an Email with power Restore and eliminate any old email still in the queue with the power fail mention (from the same customer) 

Can I query expression on the Queue Item entity or should i do with email entity, (to get a list of previous emails that are in my queue?)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    In a typical scenario, this will create duplicate incidents, hence we will stop creating those or after creation map it to Parent case through plugin.

    Same concept, in your case am not sure about your “cleaning” process. Assume that you have flags like “isCleaned?” and your team will mark it on actioned emails. You can filter those out of views. Are you saying “power restore” from same customer as of “power fail” should be eliminated?!

    Coming back to solution, you can do query expression/fetchxml to check on create of email, for matching sender & subject for “power fail” you can what you want.

    Simply go to Adv. find & query the “Email messages” Entity for sender, subject contains. Download the fetchxml & use it in RetrieveMultiple(FetchExpression). Decide based on resultset & manipulate the data do that your team need not to act on it.

  • Anthony A Profile Picture
    230 on at

    The Queue does not create the incidents using the automatic case create system.  (when I say clean, they are removed from the queue)

    As they arrive in the queue, depending on subjet, either my plugin creates the case and removes the email or its left there for a person to read and either create an incident or remove the email.

    Some emails comes in to warn us about a problems (power fail) but the issues resolves iteself within minutes (power restore) Instead of having someone match them up,  I want to get rid of any past powerfail when the power restore arrives. (that remain in the queue)

    I need to query the emails that are in the queue to see if any match up. i know i can do this with queryexpression but i'm not sure where the list resides...

    I could create a incident when a power Fail comes in, and then cancel that same incident when a power restore arrives, but it feels kinda pointless.... (this would be the easy way)  

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans