FileAttachments and Prev
Content
Hi all,
Im trying to write a Custom Process script on Incident Update to trap if an attachment has been added to the Incident. It works fine on Create as I can check attachment count as below.
$files = $obj->FileAttachments;
$count = count($files);
However, when I try to get the previous incident on Update and get an attachment count, it always comes back as 0.
$objOld = $obj->prev;
$filesOld = $objOld->FileAttachments;
$countOld = count($filesOld);
Any suggestions?
Cheers,
Mark
0