DAX Dude: AX 2009 Batch Job Stuck In Executing:
'via Blog this'
Tuesday, December 13, 2011
Monday, December 12, 2011
Wai Keat Ng's Dynamics AX Blog: Create Alert using X++ codes
Wai Keat Ng's Dynamics AX Blog: Create Alert using X++ codes: "EventInbox inbox;
;
inbox.initValue();
inbox.ShowPopup = NoYes::Yes;
inbox.Subject = "This is the Alert subject";
inbox.Message = "This is the Alert message";
inbox.AlertedFor = "This alert is just information no links are available";
inbox.SendEmail = false;
inbox.UserId = curuserid();
inbox.TypeId = classnum(EventType);
inbox.AlertTableId = tablenum(Address);
inbox.AlertFieldId = fieldnum(Address, Name);
inbox.TypeTrigger = EventTypeTrigger::FieldChanged;
inbox.CompanyId = curext();
inbox.InboxId = EventInbox::nextEventId();;
inbox.AlertCreatedDateTime = DateTimeUtil::getSystemDateTime();
inbox.insert();"
'via Blog this'
;
inbox.initValue();
inbox.ShowPopup = NoYes::Yes;
inbox.Subject = "This is the Alert subject";
inbox.Message = "This is the Alert message";
inbox.AlertedFor = "This alert is just information no links are available";
inbox.SendEmail = false;
inbox.UserId = curuserid();
inbox.TypeId = classnum(EventType);
inbox.AlertTableId = tablenum(Address);
inbox.AlertFieldId = fieldnum(Address, Name);
inbox.TypeTrigger = EventTypeTrigger::FieldChanged;
inbox.CompanyId = curext();
inbox.InboxId = EventInbox::nextEventId();;
inbox.AlertCreatedDateTime = DateTimeUtil::getSystemDateTime();
inbox.insert();"
'via Blog this'
Dynamics AX Custom ALerts
Query :
How can i add custom alerts in dynamics ax?
Answer :
void createAction()
{
EventNotificationSource _source;
EventNotificationBatch event = EventNotification::construct(EventNotificationSource::Batch);
;
event.parmUserId(curuserid());
event.parmSubject(subject);
event.parmMessage(message);
event.parmNotificationType(EventNotificationType::Action);
event.parmShowPopup(NoYes::Yes);
event.parmSendEmail(sendemail);
event.create();
}
How can i add custom alerts in dynamics ax?
Answer :
void createAction()
{
EventNotificationSource _source;
EventNotificationBatch event = EventNotification::construct(EventNotificationSource::Batch);
;
event.parmUserId(curuserid());
event.parmSubject(subject);
event.parmMessage(message);
event.parmNotificationType(EventNotificationType::Action);
event.parmShowPopup(NoYes::Yes);
event.parmSendEmail(sendemail);
event.create();
}
Subscribe to:
Posts (Atom)