Found this in Drafts been so long I can't remember where I used it... YMMV
my function.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | { "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
1 | let previousData = context.bindings.myInputBlob; |
Write
1 | context.bindings.myOutputBlob = currentData; |
0 Comments