sliit-foss / gists

MIT License
5 stars 2 forks source link

How to invoke Azure Functions #22

Open mrmihi opened 3 months ago

mrmihi commented 3 months ago
// Use this to access the input data passed while manually invoking a timer trigger
const requestData = context.bindingData[context.executionContext?.functionName]

// Add the following as a pre-request script in postman while making the request
pm.request.body.update({
 mode: "raw",
 raw: JSON.stringify({
    input: JSON.stringify(JSON.parse(pm.request.body.raw).input)
}),
 options: {
     raw: {
         language: "json"
     }
 }
})