Retrieving a parent workflows children/child executions

I’ve gone over the go SDK and I can’t find an easy way to get/list all of the child workflow executions for a given parent workflow. Is there an out of the box method available to do this?

Note: All I have is the parent workflow - no child workflow futures etc.

Hi @temporal_salmon

For pending child executions you can use DescribeWorkflowExecution .PendingChildren

If you have advanced visibility, you can also set your own custom search attribute and query workflows in combination with others. Something like ParentWorflowId="MyParentId" and ExecutionStatus="Completed"

You will have to put the code inside an activity.

Hi @antonio.perez, thanks for your reply. I think DescribeWorkflowExecution.PendingChildren, will do the trick!