Hello cdtj,
Thanks again for your help on the action macro code. Yes, the code is working smoothly in my test environment, though I made a slight modification in your code. I believe msg[1] must return 1 if the record found and having said that it worked in that way in my environment. I must consider your response as the correct answer. Thanks a ton.
send_wait(0, top_object(), "call_attr", "cr_prp", "sync_fetch", "STATIC", format("owning_cr = '%s' AND label = 'Does this Product already exist in Service Desk' AND value = 'Yes'", cr.persistent_id), -1, 0);
logf(SIGNIFICANT,msg[1]);
if (!msg_error()) {
// msg[1] contain rows count, 1 means record matched
if (msg[1] == 1) {
send_wait(0, this, "call_attr", "status", "set_val", "SKIP", "SURE_SET");
} else {
logf(SIGNIFICANT,"In Else Block");
}
}
ArunavaS