Found this in Drafts been so long I can't remember where I used it... YMMV
my function.json
{
"bindings": [
{
"name": "myTimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "2 */30 * * * *"
},
{
"name": "myInputBlob",
"type": "blob",
"path": "%PREVIOUS_FILE%",
"connection": "AzureWebJobsStorage",
"direction": "in"
},
{
"name": "myOutputBlob",
"type": "blob",
"path": "%PREVIOUS_FILE%",
"connection": "AzureWebJobsStorage",
"direction": "out"
}
]
}

Read
let previousData = context.bindings.myInputBlob;
Write
context.bindings.myOutputBlob = currentData;
0 Comments