Open PawelKaczanowski7N opened 2 years ago
@PawelKaczanowski7N see https://github.com/Azure/azure-functions-durable-extension/issues/1922. Specifically you will want to serialize your object to JSON before sending it to the activity function:
Invoke-DurableActivity -FunctionName 'Test2' -Input ($result | ConvertTo-Json -Depth 5)
@davidmrdavid as the owner of that other issue where docs are supposed to be updated.
It's a dirty workaround but it will work in most cases(my also), side effect is that you loose objects type as everything is converted to hashtables and arrays.
Thank you
Thanks @PawelKaczanowski7N and @kwill-MSFT.
This is a tricky behavior to fix because it constitutes a breaking change, but we're aware of it and I've already included the fix in the code for the next major release of the Durable Functions for PowerShell SDK. I'm looking to release that as soon as possible, most likely in the next few months (since it's a breaking change release, it requires time). I should be able to provide more updates on this soon :)
Hey @PawelKaczanowski7N, @kwill-MSFT:
The release took longer than expected on our end, my apologies for that, but this new SDK has finally been announced here. This new SDK allows us to version breaking changes properly as it's published as a standalone package in the PowerShell gallery, which means we were finally able to deal with this issue as well as several others. Just wanted to notify you all in case you were interested in giving it a try. Please note that this SDK package is currently in public preview, but the plan is to GA it fairly quickly, in time for PowerShell 7.4 support in Azure Functions. That's all, thanks!
Hi @PawelKaczanowski7N - thank you for using Durable Functions! I'm a PM working on DF and would love to learn about your experience. If your time allows, please grab a meeting with us here. Understanding the problems you're trying to solve will help us target future development. Thanks!
Orchestation function:
Hello1 function:
Output: