Import attachments from gmail to google drive - create filename node fails

Hi i keep getting an error in my " create filename node"
Here is my workflow


Here is the error after trying the event.

Any idea how i can resolve this?

Thanks

1 Like

The error message shows :

$input.item.json.sender is undefined. So it can not be split.

The screenshot can not tell where is the sender. Can you give another screenshot?

If you want to get the sender like this screenshot

You can use the code

let sender = $input.first().json.from.value[0].name

thx for the reply, i see this :

where exactly should i use the code you send?

and what other screenshots do you need ?