Payload not passing to next node

I’m trying to pass a URL showing a camera snapshot to a notification. A node ends up with the URL as the payload, then I pass it through a template node with all of the data for the notification. However, when it’s passed to the notification, the payload isn’t being recognized.

I’m using {{payload}} in place of the attachment URL. Looks like it’s always coming through blank.

Here’s the automation:

[{"id":"30e24605.1bbf3a","type":"arlo-snapshot","z":"55e22480.5a941c","name":"Front Door Snapshot","service":"db0b6f8c.c161f","device":"59U17B7DBBA23","x":1120,"y":680,"wires":[["869e6c95.c2e23","18b0f44c.dfbd7c"]]},{"id":"e1389635.bf5408","type":"api-call-service","z":"55e22480.5a941c","name":"Notify ","server":"8a289209.0956e","version":1,"debugenabled":true,"service_domain":"notify","service":"mobile_app_ethans_iphone","entityId":"","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1570,"y":680,"wires":[[]]},{"id":"e0145353.de0d88","type":"inject","z":"55e22480.5a941c","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":900,"y":680,"wires":[["30e24605.1bbf3a"]]},{"id":"869e6c95.c2e23","type":"api-render-template","z":"55e22480.5a941c","name":"template","server":"8a289209.0956e","template":"{\n    \"data\": {\n        \"attachment\": {\n            \"content-type\": \"jpg\",\n            \"hide-thumbnail\": false,\n            \"url\": \"{{payload}}\"\n        }\n    },\n    \"message\": \"Motion Detected at the Front Door\"\n}","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"template","templateLocationType":"msg","x":1360,"y":680,"wires":[["18b0f44c.dfbd7c","e1389635.bf5408"]]},{"id":"db0b6f8c.c161f","type":"arlo-config","z":"","name":"Arlo"},{"id":"8a289209.0956e","type":"server","z":"","name":"Home Assistant"}]

I don’t use arlo or an iphone but you don’t need the template node here. put whatever you had in the template in the ‘data’ box of service call node and drop the template node. like this:

Thanks for the suggestion! Just to be clear, the notification service call node works just fine. The problem is that I want to populate the attachment section of the notification node with the URL payload provided by the Arlo node.

what is the message does arlo node generates? is the url you need is in payload? maybe you can post the complete message output of the debug node.

sorry to insist but i still think template node is not what you are looking for. never used template node before but after checking, i see it is just mimicking the ‘developer-tools/template’ tab of home assistant.

if i am not understanding wrong, you just want to send a notification with attachment, where arlo node provides the url of that attachments. then again, i suggest to paste this into data box of service call and remove the template node.

{
    "data": {
        "attachment": {
            "content-type": "jpg",
            "hide-thumbnail": false,
            "url": "{{payload}}"
        }
    },
    "message": "Motion Detected at the Front Door"
}