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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to notification message in action center without refresh the page in D365 F&O

(0) ShareShare
ReportReport
Posted on by 120

The button was made by myself. If click the button action is taken to alert the action center but it is unable to display the message in the action centre, However, it won't appear until I refresh the page. 

If an action is taken, the message will appear in the action centre automatically.

Also, I write the code below that to show the message in action centre.(button clicked method)

-------------------------------------------------------------------------------------------------------------

ttsbegin;
SystemNotificationDataContract notification = new SystemNotificationDataContract();
notification.Users().value(1, userGroupList.userId);
notification.Title("Bom Activate");
notification.RuleId('Please Activate the BOM');
notification.Message(strFmt("BOM : Kindly Activate BOM ID %1",BOMTable.BOMId));
notification.ExpirationDateTime(DateTimeUtil::addHours(DateTimeUtil::utcNow(), 48));

SystemNotificationsManager::AddSystemNotification(notification);
ttscommit;

info("Notification sent");

-------------------------------------------------------------------------------------------------------------

I click the verify button, info is working properly but

pastedimage1683217770591v1.png

The notice is displayed in the action centre when the page has been refreshed. I don't refresh the page, yet the message appears automatically in the action centre when a button(verify) is clicked.

pastedimage1683217898302v2.png

Thanks in advance,

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,843 Moderator on at

    Hi Abhinandan,

    Which version are you using.

    I think there is some issue with action center in one of the versions. I am not sure which version is it.

    Does it work for standard notification without refreshing the page.?

    Thanks,

    Girish S.

  • Abhi Profile Picture
    120 on at

    Hi Girish S,

    Yes, Standard notification is working without refreshing the page.

    Thanks & Regards,

  • Verified answer
    GirishS Profile Picture
    27,843 Moderator on at

    Hi Abhinandhan,

    Sorry I am not sure with this error. May be due to some versioning issue.

    Refer to the below blog and check whether it helps.

    https://ariste.info/en/2020/04/messaging-api-add-actions-message-bar/

    Thanks,

    Girish S.

  • Abhi Profile Picture
    120 on at

    Hi Girish,

    Thank-you. but i dont click the message details to check the notification. its comes automatically(You provide the link).

    Anyway thank-you very much for your information.

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 671

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 621 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 589 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans