AnsweredAssumed Answered

on log comment, status change update cr

Question asked by mayur.malhotra.1 on Sep 8, 2018
Latest reply on Sep 9, 2018 by mayur.malhotra.1

Hello Guys

 

I want to update the custom date field in cr object from alg. Post_validate alg object for type =log, st, tr.

 

My mod and spell as follows

 

MODIFY alg POST_VALIDATE znowalg_update() 5011 FILTER(type=="LOG" || type=="ACK" || type=="RE" || type=="ESC" || type=="ST" || type=="TR" );

-----------------------------------------------------

alg::znowalg_update (...){
object c_dob, c_list, group_leader, act_log_table_record;
int cur_time;
cur_time = now();

send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");

who=msg[0];

send_wait(0, top_object(), "call_attr", "api", "update_object", who, c_dob.persistent_id, NULL, group_leader, 0, "zalgnow_upd", cur_time);

send_wait(0, group_leader, 'checkin');

 

}

But I am getting error on changing anything in the ticket.

09/08 22:54:58.38 WWL-DT-SD-01 spelsrvr 10768 ERROR pcexec.c 6123 Spell interp failed at znowalg_update.spl:11:alg::znowalg_update: No object for member variable persistent_id

 

Any ideas.

 

Thanks

MM

Outcomes