Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How can I create a reminder that uses a pop-up to remind the user before an appointment or task?

Posted on by Microsoft Employee

I had this idea when you create a task you can tick a custom added field called "Remind me" and if it is ticked (value=True) you can enter a date and time when you want to be reminded. Now, upon creation of an appointment I have a workflow that creates a task automatically and copies all necessary fields from the appointment (ie. Owner, Due Date, Remind me etc.). Now what I want is this: If a task is created and the field "Remind me" is True, then create a pop-up at the set reminder time. How to create this pop-up?

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: How can I create a reminder that uses a pop-up to remind the user before an appointment or task?

    Hi parnter,

    If you want to reminder the users with pop-up window of alert when the time comes, you do not need to use workflow because workflow only run in the background and it could not control the page elements.

    So you shuold use js code to do this.

    You could add a js function on the form "onLoad" event to check if the current time equals the field date value, and if it is, then show an alert message.

    You could use "two options field" type field to be "Remind me" field.

    function showReminder(executionContext){
        var formContext = executionContext.getFormContext();
        //get the value of "Reminder me"
        var ifRemind=formContext.getAttribute("Reminderme").getValue();
        //get the date field value.
        var taskDate=formContext.getAttribute("taskDate").getValue();
        //get the current datetime.
        var now=new Date();
        if(ifRemind==true){
            if(taskDate==now){
                alert("reminder messages...");
            }
        }
    }

    Hope it helps.

    Best Regards,

    Leo

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans