Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Warning when date exceeded via JavaScript

Posted on by Microsoft Employee

Hi,

I am looking for a Script that sets a Warning after a set date is exceeded.

For an example:

If the date in that Field has passed I want a Warning like "Customer did not pay"

8546.rechnungsdatum.jpg

The Fieldname is pz_rechnungsdatum

I am looking for something like that.

1067.092315_5F00_1312_5F00_DynamicsCRM2.jpg

I am not experienced with JavaScripts so I am happy to hear from you!

-Julian

Categories:
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Warning when date exceeded via JavaScript

    Hi,

    you should use setFormNotification

    getValue

    [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/attributes/getvalue:750:50]

    Then compare the value you get and current date , if the date is exceeded , call below script

    setFormNotification

    [View:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/formcontext-ui/setformnotification:750:50]

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans