One e-mail instead of multiple e-mail notifications?

BatchPatch Forums Home Forums BatchPatch Support Forum One e-mail instead of multiple e-mail notifications?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14086
    rajdude
    Participant

    Hello!
    Is it possible for BP to send one single e-mail notification with a report of what happened, after a scheduled task is done?

    Right now, it is sending one e-mail for each row/each server in my grid. I need to patch around 200 servers, that means it will send 200 e-mails!

    -Raj

    #14087
    doug
    Moderator

    Set the email body and attachment fields to $grid instead of $row. Then set just a single row to send an email notification instead of having all rows send one. When the single row sends the email notification, it will include the entire grid contents instead of just the single row contents (because of $grid instead of $row)

    https://batchpatch.com/how-to-send-email-notifications-in-batchpatch

    #14088
    rajdude
    Participant

    ok thanks Doug!
    I will try that, but I can foresee one problem- What if the scheduled job of the server in the row which is supposed to be sending the e-mail finishes up before the other rows in the grid? Does that not mean that it will send the e-mail, yes, but the e-mail will not have the final results of the scheduled tasks of the other rows?

    My scheduled task is simple: I need to run windows updates on these and then reboot them.

    #14089
    doug
    Moderator

    Create a new row for the sole purpose of sending an email notification. Schedule that row to run at a time when you know everything else will be done.

    Alternatively, a more advanced option is to use the advanced multi-row queue sequence to trigger the email notification row to execute after everything else is done. If you search for ‘sequence’ on our main website tutorials section you can find examples for that, if interested.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.