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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

clearNotifications() throws javascript error in Mobile

(0) ShareShare
ReportReport
Posted on by 1,272

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

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

I have the same question (0)
  • MRVIX Profile Picture
    1,272 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
    1,272 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
    3,397 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
    2,253 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
    3,569 on at
    RE: clearNotifications() throws javascript error in Mobile

    Hello,

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

  • ajyendra Profile Picture
    1,738 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
    50,091 Moderator 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 141

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
DAnny3211 Profile Picture

DAnny3211 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans