Workflow context changes after calling a campaign workflow
Ricorei opened this issue ยท 0 comments
When doing:
effect("run_workflow", args, "o", "_documentRefresh") -- 1
effect("run_workflow", args, "c", "_itemLock") -- 2
effect("run_workflow", args, "o", "_documentRefresh") -- 3
-- 1) Works nicely.
-- 2) Works nicely.
-- 3) Suddenly doesn't work as nicely.
- Call workflow -> ActiveCampaign
- Call workflow -> Object
The 2nd workflow will look into the Active Campaign and not in the Object resulting as:
- Call workflow -> ActiveCampaign
- Call workflow -> [Object] ActiveCampaign instead of [Object] Current Item.
On this screenshot and as a proof/example, _documentRefresh isn't found unless it's created in Active Campaign. Though every Object variable "o" created in the campaign workflow will be correctly assigned to the current running item.
Perhaps the behavior is on purpose but it seems counter intuitive.