Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

clearNotifications() throws javascript error in Mobile

Posted on by 1,258

context.getControl("fieldname").clearNotifications();

Is '.clearNotifications()' compatible with the D365 mobile app?

  • MRVIX Profile Picture
    MRVIX 1,258 on at
    RE: clearNotifications() throws javascript error in Mobile

    Hi all, thanks for all your responses. Erhan's advise worked for me. Thanks a lot!

  • MRVIX Profile Picture
    MRVIX 1,258 on at
    RE: clearNotifications() throws javascript error in Mobile

    Hi All, can you guide me on how I'll be able to debug the Mobile app?

  • Suggested answer
    Naveen Ganeshe Profile Picture
    Naveen Ganeshe 3,393 User Group Leader on at
    RE: clearNotifications() throws javascript error in Mobile

    Hello Marjorie!

    You can try again after disabling legacy forms rendering and run the script again. Also, please refer to the below link to add/clear field notification:

    Add/Clear field Notifications

  • Verified answer
    erhan.keskin Profile Picture
    erhan.keskin 2,247 on at
    RE: clearNotifications() throws javascript error in Mobile

    Hi,

    Isn't it clearNotification() not clearNotifications()?

    https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/controls/clearnotification

    Regards,

  • Suggested answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: clearNotifications() throws javascript error in Mobile

    Hello,

    Try context.ui.clearFormNotification(formNotificationId); //formNotificationId is optional

  • ajyendra Profile Picture
    ajyendra 1,730 on at
    RE: clearNotifications() throws javascript error in Mobile

    As setNotification ,AddNotification method works for Dynamics 365 mobile clients.  IT is compatible too

    docs.microsoft.com/.../clearnotification

    Can you send me what you have to do for setNotification & also share what error you got?

  • gdas Profile Picture
    gdas 50,085 on at
    RE: clearNotifications() throws javascript error in Mobile

    Hi Marjorie ,

    clearNotification() should work in mobile app. Can you please share error details here .

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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