CA Service Management

 View Only
  • 1.  Email Notification 15 days BEFORE due date

    Posted May 23, 2025 04:08 AM

    Hello,
    I am using CA SDM 17.4, I need to setup a notification to change initiator before 15 days of due date.

    can anyone tell me how do i achieve this.

    I know it is very easy to do if i want to trigger notification AFTER due date.
    But i want it BEFORE due date,



  • 2.  RE: Email Notification 15 days BEFORE due date

    Posted Jun 04, 2025 09:35 AM

    @everyone, Can anyone please help?




  • 3.  RE: Email Notification 15 days BEFORE due date

    Posted Jun 19, 2025 09:55 AM

    Hi, 

    You can done this by creating a event with a notification macro and dynamically attach it to change by using a simple spl code like this:

     

        object eventt;
        date startdate;
        send_wait(0, top_object(), "call_attr", "evt", "dob_by_persid", 0, "evt:xxxxx"); //this need your event persid
        eventt= msg[0];
        startdate = (int) due_date - (int)(3600*24*15); // here you calculate your execution date by substract time  3600 =  1 hour, *24  = a day.  *15 days you need
        send_wait(0, top_object(), "call_attr", "evt", "new_attached_event_obj", NULL, persistent_id, eventt, 10, startdate, "", 0, 0, ""); //here is where event is attached
        if (msg_error()) {
            logf(ERROR, "Error attaching event %s", msg[0]);
        }

    This is not tested, is just a example code. 

    Regards,