Attach latest snapshot

Hi

I have a snapshot call service node

{    
        "entity_id": "camera.camera_2",    
        "filename": "/config/www/intrusion/intrusion_" & $moment().format("YYYMMDD-hhmmss") &".jpg"
}

How do I grab the latest snapshot, when doing a notify call service with an image attachment

I did like this


But i’m not sure on how to send a unique filename each time, still learning this.