Renu9
Tera Contributor

@Ankur Bawiskar  Please help

Ankur Bawiskar
Tera Patron

@Renu9 

is it going inside the IF statement?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

no its not going inside if . I think its because table sys id in attachment table is empty. Pl guide

@Renu9 

the issue is possibly because that query is not working.

try commenting line 6 and see if this works

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

I commented out line number 6, still its not going to if.

Why table_sys_id is coming as empty in attachment table. Is it because I was using an attachment type variable?