try { // 创建PushNotification对象 PushNotification pushNotification = new PushNotification();
// 设置推送通知的属性
pushNotification.Title = "New order alert";
pushNotification.Description = "A new order has been received.";
pushNotification.EntityType = "SOOrder";
pushNotification.EntityID = order.OrderID;
// 派遣推送通知
pushNotification.Dispatch();
} catch (Exception ex) { // 处理推送通知派遣错误 }
确保使用的是最新版本的Acumatica和相关库。
如果出现系统崩溃问题,可以尝试以下步骤: