-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
EnhancementNew feature or requestNew feature or requestNeeds: Author FeedbackWaiting for the author of the issue to respond to a questionWaiting for the author of the issue to respond to a questionP3Priority 3Priority 3
Description
Related Issue: Azure/azure-functions-durable-extension#1922
If I build up a ps object with sub-objects in an orchestration function and send that to an activity function, it ends up as a hashtable on the other side:
$InputData = [PSCustomObject]@{
Data = $Data
Documents = $Documents
SyncDataType = $SyncDataType
}
Invoke-DurableActivity -FunctionName 'Sync-DataWithDocuments' -Input $InputData
Maybe this is just a limitation but I want to be sure before I use workarounds. I can get it to work if I do the following:
$InputData = [PSCustomObject]@{
Data = $Data
Documents = $Documents
SyncDataType = $SyncDataType
}
Invoke-DurableActivity -FunctionName 'Sync-DataWithDocuments' -Input ($InputData | ConvertTo-Json -Depth 100)
Then in the activity function
function Sync-DataWithDocuments {
Param($Object)
$Object = $Object | ConvertTo-Json -Depth 100 | ConvertFrom-Json
}
Metadata
Metadata
Assignees
Labels
EnhancementNew feature or requestNew feature or requestNeeds: Author FeedbackWaiting for the author of the issue to respond to a questionWaiting for the author of the issue to respond to a questionP3Priority 3Priority 3