Wrapup_codes reference in tf file

I was able to export data from Org A. I am trying to import the data from Org A to Org B.

a. Division and the wrap-up codes are already created in both Org’s.

b. How can I reference the wrap-up codes in the tf file?

resource "genesyscloud_routing_queue" "OPEN_PRO_NA_CAN_EMP_INVC_Q" {
auto_answer_only = false
media_settings_chat {
service_level_percentage = 0.8
alerting_timeout_sec = 30
service_level_duration_ms = 20000
}
enable_manual_assignment = false
name = "OPEN_PRO_NA_CAN_EMP_INVC_Q"
media_settings_callback {
alerting_timeout_sec = 30
service_level_duration_ms = 20000
service_level_percentage = 0.8
}
division_id = "${genesyscloud_auth_division.MOVEDIVISION.id}"
wrapup_codes = ["${genesyscloud_routing_wrapupcode.Invoice_New.id}", "${genesyscloud_routing_wrapupcode.Invoice_Paid.id}"]
media_settings_call {
alerting_timeout_sec = 20
service_level_duration_ms = 30000
service_level_percentage = 0.8
}

Please help me out

Hi @Ravi

If I understand your problem correctly it sounds like you need to use the replace_with_datasource property on the export. You can see the docs for this here

Regards,
Declan

Thanks for the update. Do I need to add this step in the export config or after the data is exported?

I am getting this error:
│ Error: Unsupported argument

│ on core_main.tf line 21, in resource "genesyscloud_tf_export" "export":
│ 21: replace_with_datasource = ["genesyscloud_auth_division::OPEN_AAA"]

│ An argument named "replace_with_datasource" is not expected here.

Thanks for the update, but I am getting this error:
│ on genesyscloud.tf line 13, in resource "genesyscloud_architect_schedulegroups" "OPEN_PRLL_APAC_VNM_SG":
│ 13: open_schedules_id = [data.genesyscloud_architect_schedules.OPEN_PRLL_APAC_VNM_HOOP.id]

│ A data resource "genesyscloud_architect_schedules" "OPEN_PRLL_APAC_VNM_HOOP" has not been declared in the root
│ module.

Hi Ravi,

Can you post your original export configuration and the exported tf file? The error you are getting indicates that the data source reference was created without defining the data source. We won't know until we can see what your full file looks like. Make sure when you post you don't include any passwords or credentials.

Thanks,
John Carnell
Director, Developer Engagement

@Hemanth Adding you as a reference here.

Thanks for the update. I will upload the files by end of tomorrow.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.