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

Notifications

Announcements

No record found.

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,827 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,827 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans