Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Email Notification

(0) ShareShare
ReportReport
Posted on by 10

Hi,

i would like to schedule a report that will send to the owner of the opportunity which the est. close date is less than 5 days an email with a specific text. But i don't want this to be triggered on  any change.  If an opportunity has an est closing date (today -5 days) to send an email to the owner. 

Further to that is there any possibility to schedule a weekly email to send a report with all the open opportunities to the owners?

Thanks,

Haris

  • Suggested answer
    Joseph McGregor Macdonald Profile Picture
    597 on at
    RE: Email Notification

    Hi

    I have a free open source solution which should be able to meet both your email notification scenarios entirely through configuration records and system views

    This article gives details about the solution. Specifically you should be able to meet your requirement by creating workflow task records of type View Notification, and configuring them to send to the owning users

    josephmcmac.wordpress.com/.../dynamics-365-workflow-scheduler

    The managed solution may be downloaded here, and the code is all open source on GitHub

    github.com/.../latest

    Hope this helps

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Email Notification

    Hi,

    You can create console application to fetch the records which satisfy the conditions which you have mentioned in your post. You can use advanced find to build the fetch xml which can be used in console application.

    Console App - github.com/.../WorkWithCRM

    Apply for loop to the returned result and use sample code is already available in sdk to send an email .

    To schedule this exe you can use task scheduler on your server.

    docs.microsoft.com/.../sample-send-email

    Work with fetchxml in C#

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/use-fetchxml-construct-query

    If found helpful, Please mark my answer verified.

  • HARISHADJ Profile Picture
    10 on at
    RE: Email Notification

    Hi the CRM is on premises. I think we cannot use the Flow. is there  any other option?

  • HARISHADJ Profile Picture
    10 on at
    RE: Email Notification

    Hi,

    we are using on premises. but i am not sure if this is feasible to be done through workflow.

    because workflow needs to be triggered somehow.

    how can i create a workflow that will send email notifications for opportunities that will expire in 2 days?.(Using the Estimate Closing Date) 

  • LuHao Profile Picture
    40,886 on at
    RE: Email Notification

    Hi partner,

    Has the problem been solved? Any updates?

    Please tell us more information, I will provide you with detailed steps screenshots.

  • LuHao Profile Picture
    40,886 on at
    RE: Email Notification

    Hi partner,

    Are you using D365 online or OP?

    If it is D365 online, we will use microsoft flow.

    If it is D365 OP, we will use workflow.

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Email Notification

    Hi,

    You can create microsoft flow and schedule this to run everyday. Fetch all open opportunity whose est close date is less that 5 days. Loop through all the records and send consolidated email to owner.

    You can also write simple console utility which will retrieve open opportunity record, use fetch xml to build your query. You can also apply group by based on owner and for each owner send an email with all open opportunity. Now you can schedule this console application to run daily on azure as web job.

    If found helpful, Please mark my answer verified.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Eugen Podkorytov Profile Picture

Eugen Podkorytov 106

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

Overall leaderboard

Product updates

Dynamics 365 release plans