@Ana You can trigger an activity function only from an orchestrator function. If you had it already working with the HTTP Trigger and you needed to incorporate more stateful workflows to it, Logic Apps might be a good and easy way to do it: Call functions from Azure Logic Apps
Input/Output Binding on Azure Durable Activity Function
I need to update Azure Table from Azure Durable Function.
The code works nicely if I put it in the HTTP trigger.
run.ps1
Push-OutputBinding -Name TableBinding -Value @{
PartitionKey = $partitionKey
RowKey = $rowkey
SomeData = $SomeData
}
function.json:
"bindings": [
{
"authLevel": "function",
"name": "Request",
"type": "httpTrigger",
"direction": "in",
"route": "orchestrators/{FunctionName}",
"methods": [
"post",
"get"
]
},
{
"type": "http",
"direction": "out",
"name": "Response"
},
{
"name": "starter",
"type": "orchestrationClient",
"direction": "in"
},
{
"tableName": "myTable",
"connection": "MYCONNECTIONSTRING",
"name": "TableBinding",
"type": "table",
"direction": "out"
}
]
}
It doesn't do ANYTHING if I put it in Activity Function. No error and no entry in the table. Nothing happens. Stream log glides through as if everything executed correctly, but there are no entries in the table.
Do Durable Activity Functions support extra input/output bindings?
3 answers
Sort by: Most helpful
-
Mike Urnun 9,811 Reputation points Microsoft Employee
2021-05-18T03:38:19.173+00:00 -
Luc Bergeron 11 Reputation points
2021-08-17T12:47:23.473+00:00 I'm getting the same issue while using an queue as output. Durable function documentation state that it's possible to use them : https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-bindings?tabs=csharp#using-input-and-output-bindings.
@Ana have you been able to fix this?
-
alex 1 Reputation point
2021-12-09T00:59:16.853+00:00 I know this is an older question but I am too having issues with CosmosDB output bindings, experiencing the exact same behavior that @Ana and @Luc Bergeron described. This is only in true when I try this binding using a durable (activity) functions. Are output bindings for cosmos, queues, etc supported at all using activity functions?