Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

FileAttachments and Prev (1 Comment)

$
0
0

Topic by Mark Bradley

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


Viewing all articles
Browse latest Browse all 2504

Trending Articles