How to add the input to a manual trigger of an Activity Function #1847
Unanswered
LarsHanegraaf
asked this question in
Q&A
Replies: 1 comment
-
If your activity input type is a string, then the body should just be a string. Make sure the string is wrapped in quotes. If your activity input type is a POCO, then the body should just be a JSON representation of that POCO object. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
As described in #951 it is now possible to trigger an Activity Function manually using an HTTP POST request.
I followed the instructions of the Azure Durable Functions manual and I received a 202 response if do a POST request to my local Functions runtime. However in my terminal I see the following error that the activity function needs input that is
a DurableActivityContext or a String that represents the serialized input
.I already tried adding the input as an argument in the url of the request and as the body of the JSON as key:value, but that didn't resolve the errors.
Any ideas?
Thanks!
Lars
Beta Was this translation helpful? Give feedback.
All reactions