Open Francisco-Gamino opened 3 years ago
Hello @4c74356b41 -- Could you please explain your scenario in which you are trying to pass data between Durable activities and you are facing the deserialization issue? Thanks.
orchestrator function
$cleanerReference = @{
runId = $ctxObj.runId
source = "orchestrator"
applicationId = $ctxObj.applicationId # string
assignments = $ctxObj.assignments # array of strings
}
Invoke-DurableActivity `
-Input $cleanerReference `
-FunctionName cleaner | Out-Null
cleaner function:
param( $cleanerReference )
Remove-AzADApplication -ApplicationId $cleanerReference.applicationId -Force
$body = @{
runId = $cleanerReference.runId
applicationId = $cleanerReference.applicationId
source = "cleaner"
}
# array gets passed as string with spaces -..-
# https://github.com/Azure/azure-functions-powershell-worker/issues/669
$cleanerReference.assignments.split().foreach{
xxx
}
@davidmrdavid - is this something fixed in the standalone SDK by any chance?
Hi @4c74356b41, 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!
@lilyjma hey, sorry, i'm not on that project anymore, so cant speak on their behalf and this development was productionized in ~ october 2021. not sure if its still working, but it was working fine
Repro steps
Provide the steps required to reproduce the problem:
Expected behavior
returns
System.Collections.Hashtable
Actual behavior
returns
System.String
Known workarounds
forcefully cast to an object with
$Request.Body | ConvertFrom-Json
Related information
https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-powershell?tabs=portal#request-object
{"name": "please_work"}
)