Showing posts with label Alerts. Show all posts
Showing posts with label Alerts. Show all posts

Monday, December 12, 2011

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();
}