Custom Function/Script returns NULL for Request ID

Custom Function/Script returns NULL for Request ID

Hello -


I"m using a Custom Function/script to send out an email notification to all applicable Technicians when a REquester opens a ticket.  Everything is working fine except:


id = requestObj.get("id");

It seems as if the ID is not tey "created" by the time this Functions fires off. How do I ensure the id is populated? do I need to loop for a bit?