Wednesday, March 9, 2022

D365 F&O Create Alert

 About alerts

  Alerts notification system for critical events in the system. You can use alerts to stay informed about events that you want to track during the workday. You can easily create your own set of alert rules  for events that you must respond to..

   SystemNotificationDataContract notification = new SystemNotificationDataContract();
   notification.Users().value(1, curUserId());
   notification.Title("Transaction finished");    // Title for notification  
   notification.RuleId('WorkflowStatus');     
   notification.Message("We finished your transaction");  // Message will be appear in notifications.");
   notification.ExpirationDateTime(DateTimeUtil::addHours(DateTimeUtil::utcNow(), 48));
   notification.ReminderInterval(5);
   SystemNotificationsManager::AddNotification(notification);
  



Expiry of rule

On the Alert me until FastTab of the Create alert rule dialog box, you can specify how long the alert rule should be active.



User ID

On the Alert me with FastTab of the Create alert rule dialog box, you can specify which user should receive the alert messages. By default, your user ID is selected. The ability to change the user receiving the alert is restricted to organization administrators.




No comments:

Post a Comment