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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to set alert mail ...
Power Automate
Answered

How to set alert mail in dynamics 365 using flow

(0) ShareShare
ReportReport
Posted on by 100

Actually I want to set an alert or reminder mail before 2-3 days of the selected date.

Scenario- There is one entity named "Leads". So in that lead entity whenever any record is created, in that one field is their named "Reminder" and data type is Date format. So in that "Reminder"  field user will select one date. 

So suppose user selects date 6/10/2020, so he/she should receive reminder or alert mail before 2 days of the selected date i.e on 6/8/2020. 

So can anyone help me with this scenario in creating flow!??

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    MJain Profile Picture
    2,450 on at

    Hi @Saurabh-704 ,

     

    Please use the following steps:

     

    1. Create an instant flow from blank inside a solution

    2. Use Recurrence as starting point. Set your timing for the flow to occur on daily basis at selected time.

    3. Use Common data service (current environment) and use List Records action 

    4. Select your entity and provide the fetchxml of your requirement.

    5. Since the date should be dynamic , remove the date from fetchxml and use the expression as : formatDatetime(addDays(utcNow(),2),'yyyy-MM-dd') , the reason behind this is your flow is running today and it will pick up those records having date as date+ 2 days / 3 days from today.

    6. Use Apply to Each and check condition if there are any records from the above action .

    7. If yes Do your email sending part for lead

     

    Thanks

     

    Thanks

  • Saurabh-704 Profile Picture
    100 on at

    Thank you @ManishJain for your response. Can you please help me with fetchxml, like while creating list in flow i m not getting fetchxml. Can u help me with where to put that expression. I am also attaching screenshot with this for your reference.

    CDS.png

  • MJain Profile Picture
    2,450 on at

    Hi @Saurabh-704 ,

     

    Are you creating flow in solution. If not , first create a solution and then create flow inside it.  In second step while adding an action search for Common data service , there will be two connectors for it use Common data service(current environment) . Then select List records. This action has Fetchxml option in it. 

     

    Thanks

  • Saurabh-704 Profile Picture
    100 on at

    Hello @ManishJain . Thanks for your response. I have created one solution and in that solution I have used "Lead" entity. And as per the CDS(current environment) which you are saying to connect, actually I am not getting that connector as an option. I will attach screenshot for your reference. cds2.png

    Waiting for your response. Thanks in advance.

  • MJain Profile Picture
    2,450 on at

    Hi @Saurabh-704 ,

     

    On the left hand side you will see solutions link. Click on it and create new solution first. Once you do that navigate to it and add new flow inside it. CDS Current environment is only available when your flow is created inside solution.

     

    Capture.JPG

     

    Thanks

  • Saurabh-704 Profile Picture
    100 on at

    Thank you @ManishJain for your response. It means a lot to me. Thank you so much!!

  • MJain Profile Picture
    2,450 on at

    Hi @Saurabh-704 ,

     

    Please mark the solution as accepted if it has helped you reaching goal for others as well.

     

    Thanks

  • Saurabh-704 Profile Picture
    100 on at

    Hi @ManishJain... I already did that... Thank you once again for your time. 

  • Saurabh-704 Profile Picture
    100 on at

    Hello @ManishJain, Actually I need your help in fetchXML query, like what do we need to mention here and how can you help me with this ?!
    Waiting for your response!!

    Thanks in advance.

  • MJain Profile Picture
    2,450 on at

    Hi @Saurabh-704 ,

     

    You need to go to advanced find in CRM first and get your filters set up for the entity and once you do that download the fetchxml. After doing so go to Flow and use List Records action from Current environment connector. This action has option to use fetch xml you just downloaded from CRM. 

     

    Please let me know if you looking for something else.

     

    Thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard