Original Message:
Sent: 05-22-2025 06:57
From: Hari Shankar
Subject: Export the Architect flow with all the dependency from Dev Environment and Import it in Prod Environment using CX as Code
Hi Charlie and John,
Thanks for the reply, I tried with include_filter_resources = ["genesyscloud_flow::Support_Inbound_Flow"] and it is working with me.
Flow was exported with its dependency, except for the dependency of Integration. Is that some limitation for the Flow?
But what if I want to export for the exact name, as the name was correct?

Can we also export the flow for some specific version of the flow?
------------------------------
Hari Shankar
Genesys Specialist
Original Message:
Sent: 05-21-2025 10:40
From: Charlie Conneely
Subject: Export the Architect flow with all the dependency from Dev Environment and Import it in Prod Environment using CX as Code
Hi Hari,
John is correct. The regex is not finding the flow. This appears to be a bug on our end; a simple regex like this should work. We're going to create a ticket and address it as soon as we can.
In the meantime, the example below will manage to locate the flow:
include_filter_resources = ["genesyscloud_flow::Support_Inbound_Flow"]
Unfortunately, this will act as regex that will match other flows like "Support_Inbound_Flow_123", for example. For now, the solution to this problem is to make sure no other flow names contain the text "Support_Inbound_Flow"
------------------------------
Charlie Conneely
Software Engineer
Original Message:
Sent: 05-21-2025 02:09
From: Hari Shankar
Subject: Export the Architect flow with all the dependency from Dev Environment and Import it in Prod Environment using CX as Code
Hi John,
I tried the below terraform to export the flow with its dependency, but it's not working.
terraform {
required_providers {
genesyscloud = {
source = "mypurecloud/genesyscloud"
version = "~> 1.63.0"
}
}
}
provider "genesyscloud" {
oauthclient_id = var.client_id
oauthclient_secret = var.client_secret
aws_region = var.region
}
resource "genesyscloud_tf_export" "example" {
directory = "./genesyscloud/flows"
export_format = "hcl"
include_filter_resources = ["genesyscloud_flow::^Support_Inbound_Flow$"]
enable_dependency_resolution = true
use_legacy_architect_flow_exporter = false
}
using the above Terraform, when I hit terraform apply it generates one Terraform file which has the following content.
terraform {
required_providers {
genesyscloud = {
source = "registry.terraform.io/mypurecloud/genesyscloud"
version = "1.63.0"
}
}
}
------------------------------
Hari Shankar
Genesys Specialist
Original Message:
Sent: 05-19-2025 08:33
From: John Carnell
Subject: Export the Architect flow with all the dependency from Dev Environment and Import it in Prod Environment using CX as Code
Hi Hari,
Please make sure you set:
use_legacy_architect_flow_exporter = false
------------------------------
John Carnell
Director, Developer Engagement
Original Message:
Sent: 05-15-2025 07:59
From: Hari Shankar
Subject: Export the Architect flow with all the dependency from Dev Environment and Import it in Prod Environment using CX as Code
Hi John,
Thanks for the reply I tried the below .tf file to export the Architect flow with all the dependencies.
terraform {
required_providers {
genesyscloud = {
source = "mypurecloud/genesyscloud"
version = "~> 1.10"
}
}
}
provider "genesyscloud" {
oauthclient_id = var.client_id
oauthclient_secret = var.client_secret
aws_region = var.region
}
resource "genesyscloud_tf_export" "support_inbound_flow" {
directory = "./genesyscloud/include-filter"
export_format = "hcl"
log_permission_errors = true
enable_dependency_resolution = true
include_filter_resources = [
"genesyscloud_flow::^Support_Inbound_Flow$"
]
}
after hitting terraform apply command it created .tf inside /genesyscloud/include-filter this folder but that tf file doesn't have any details related to Architect flow.
Please find the content of that file
terraform {
required_providers {
genesyscloud = {
source = "registry.terraform.io/mypurecloud/genesyscloud"
version = "1.63.0"
}
}
}
Can you please help me with how i can achieve my requirement here
------------------------------
Hari Shankar
Genesys Specialist
Original Message:
Sent: 05-14-2025 08:44
From: John Carnell
Subject: Export the Architect flow with all the dependency from Dev Environment and Import it in Prod Environment using CX as Code
Hi Hari,
Take a look at our export guide: https://registry.terraform.io/providers/MyPureCloud/genesyscloud/latest/docs/guides/export
If you set the enable_dependency_resolution flag to true and you will get the static dependency exported. However, if you are doing anything dynamic (e.g. FindByQueueName or looking up data from a data table), you will need to explicitly add that to the final export using the terraform depends_on tag.
Thanks,
John
------------------------------
John Carnell
Director, Developer Engagement
Original Message:
Sent: 05-14-2025 08:18
From: Hari Shankar
Subject: Export the Architect flow with all the dependency from Dev Environment and Import it in Prod Environment using CX as Code
I am new to CX as code. Can someone explain how we can export the Architect flow with all the dependencies from the Dev Environment and import it in the Prod Environment with all dependencies using CX as Code?
#CXasCode
------------------------------
Hari Shankar
Genesys Specialist
------------------------------