Я использую следующий код для отправки уведомлений, уведомления приходят но вот ссылка не меню в нем нет, причем записи в таблице EventInboxData создаются, что я делаю не так?
X++:
inbox.initValue();
inbox.UserId = 'ed13';
inbox.Subject = subject;
inbox.Message = 'Текст';
inbox.EmailRecipient = sysUserInfo::find(inbox.UserId).Email;
inbox.SendEmail = true;
inbox.ShowPopup = NoYes::Yes;
inbox.TypeId = classnum(EventType);
inbox.CompanyId = CurExt();
inboxId = EventInbox::nextEventId();
inbox.InboxId = inboxId;
inbox.AlertCreatedDateTime = DateTimeUtil::getSystemDateTime();
//Give any table and field values
inbox.AlertedFor = "no links";
inbox.AlertTableId = TableNum(CustTable);
inbox.AlertFieldId = FieldNum(CustTable, Name);
inbox.TypeTrigger = EventTypeTrigger::FieldChanged;
eci = new EventContextInformation();
if (!menuFunction)
{
menuFunction = new MenuFunction(menuitemdisplaystr(S_CustVendMainForm),MenuItemType::Display);
}
args.menuItemName(menuFunction.name());
args.menuItemType(MenuItemType::Display);
eci.parmPackedArgs(args);
inboxData.InboxId = inboxId;
inboxData.DataType = EventInboxDataType::Context;
inboxData.Data = eci.pack();
inboxData.insert();
inbox.insert();