We are just getting started with our first round of using Genesys outbound features and are facing some errors with managing contact lists/campaigns with terraform. If we attempt to make changes to a contact list we've first found (even in the GUI) that editing an existing lists fields are a problem and it seems the only way to get new column to take properly is to create a brand new list and reassociate the campaign to the new list. This isn't really our biggest issue, we do similar changed with data tables since schema changes are problematic also. So we are simply creating new contact lists with version number and applying them to the campaign. The issue is that when attempting to apply the new contact list to an existing campaign we get the following error:
An attempt was made to update a Campaign in an invalid way. Details: A campaign cannot have other fields changed in the same update as a status change
We've removed anything from the resource definition for the campaign that seemed possibly related to status or state of the campaign (not really something we want to manage with terraform anyway). Even starting from scratch on a brand new campaign (ensure that in terraform resource that 'state' or anything seemingly related is not part of what we are defining with terraform) we still get the same error when attempting to apply a new contact list. Here is what the resource looks like in terraform (some values are hidden).
resource "genesyscloud_outbound_campaign" "outbound_<name>" {
division_id = data.genesyscloud_auth_division.Home.id
queue_id = genesyscloud_routing_queue.AgeIn_Outbound.id
caller_name = "<caller id>"
name = "outbound_<name>"
caller_address = "+<ani>"
contact_list_id = genesyscloud_outbound_contact_list.outbound_<name>_v2.id
dynamic_contact_queueing_settings {
sort = false
}
dynamic_line_balancing_settings {
enabled = false
}
abandon_rate = 5
auto_answer = true
preview_time_out_seconds = 0
priority = 5
dialing_mode = "preview"
rule_set_ids = [genesyscloud_outbound_ruleset.Preview_Dial_Rules.id]
script_id = genesyscloud_script.OutboundAgentUI.id
phone_columns {
column_name = "Phone Number"
}
phone_columns {
column_name = "Alternative Phone Number"
}
no_answer_timeout = 30
skip_preview_disabled = false
}
We found a few old posts from 2017/2018 but not sure if they still apply. Curious if anyone else has seen this error and know of a way to manage contact list change without having to make multiple run/changes manually in the platform to manage changes to outbound campaigns and contact lists with terraform.
#CXasCode------------------------------
Mike Bailey
x
------------------------------