Adding email attachments via override from automation run cache (i.e. data)

Hi there, I am trying to access the runcache via the override to add an attachment to an email in an automation run. I have tried the channel override (Email channel-level overrides | Courier's Help Center) and a provider override for smtp (Set Up Email Using SMTP | Courier Docs). It seems the accessor type does not get access inside the array or am I doing something wrong here? Thanks so much!

{
“channel”: {
“email”: {
“attachments”: [
{
“filename”: {
“$ref”: “data.attachments.content”
},
“content”: {
“$ref”: “data.attachments.encoding”
},
“encoding”: {
“$ref”: “data.attachments.filename”
}
}
]
}
}
}

Hey @fabi

We initially had an open ticket to add support for refs in arrays. We’re taking a look now to see what the issue could be.

Found the issue with the attachment override. Josh set you up with a sample automation that works in your test environment. You can see the full details in the Courier App chat :smile:

1 Like

Thanks, works with changed logic!