Given a DescribeWorkflowExecutionResponse, we can get parent namespace ID from DescribeWorkflowExecutionResponse.GetWorkflowExecutionInfo().GetParentNamespaceId(). But what I want is the namespace name.
Is there a way to get namespace name from namespace id?
resp, err := c.WorkflowService().DescribeNamespace(context.Background(), &workflowservice.DescribeNamespaceRequest{
Id: resp.WorkflowExecutionInfo.ParentNamespaceId, // your id here...
})
if err != nil {
log.Printf("Error: %v", err)
}
// now can get name via `resp.NamespaceInfo.Name`