business notification

RavinderFromIndiaRavinderFromIndia Member Posts: 13
hi all
can we send the notifications without running the business notification worksheet form and selecting a particular report.
i want to send it immediately when i block a particular customer.
can i do this, is it possible in navision.
please tell me.
thanking you,
Ravinder Kumar
From India

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Do you mean sending emails when a field changes?

    You can send mails in navision using the mail codeunit. (397).
  • RavinderFromIndiaRavinderFromIndia Member Posts: 13
    thanks for reply,
    how this codeunit(397) will be used, if i want to send a notification to some persons when i block a particular customer.
    thanks for reply again.
    ravinder kumar
    Ravinder Kumar
    From India
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    You should make some setup table where you define which persons receive this email. You could add this to the user setup table (91). Also you need to now their email address.

    Then you sould write some code that is triggerd from the customer table. Maybe you can make some Notification codeunit which sends the emails.

    Please note that this will only work for this one field.

    You can also make a more sophisitated solution maybe based on change log.
  • kinekine Member Posts: 12,562
    hi all
    can we send the notifications without running the business notification worksheet form and selecting a particular report.

    If you want to use the BN module, it is easy... define the XMLPort, define XMLPort event in this XMLPort and in C/AL code when you want to fire this event, call
    XMLPort.SETTABLEVIEW(Rec);
    XMLPort.EventName;
    

    After that you can define new template based on this event in the Business Notification client... etc. etc.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • SaalekSaalek Member Posts: 181
    Hi Kine

    Is easy to say, but, after a lot of diferent installations (on W2K, W2003, diferent SQL Version,different mail system...), I haven't received any mails yet.

    Can you help me ??

    Actualy I have
    W2k Server (with SP4)
    SQL Server Enterprise edition (whit SP3a)
    All the BN prerequisites installed
    A Server with SMTP (Our Mail system is Lotus Notes)
    Navion 4.00 Server (I tried with NAvision SQL but nothing happends)

    I followed all installation step by step and was succesfull.
    I created different templates (very good descrived id DEMO SCRIPT document), but the mail doesn't arrive.

    Any Idea ???

    Thanks
Sign In or Register to comment.