Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource genesyscloud_routing_queue - subTypeSettings in media settings & cannedResponseLibraries #1149

Open
TaisukChoi opened this issue Jul 10, 2024 · 1 comment

Comments

@TaisukChoi
Copy link
Contributor

Right now, routing_queue does not have subTypeSettings in media_settings_* and cannedResponseLibraries.

Not having subTypeSettings in media_settings_message makes enable_auto_answer useless as auto answer does not turn on for media subtypes.

Not supporting cannedResponseLibraries is bit more problematic, because when you update a queue with canned response library configured using Terraform, canned response library setting goes back to "All libraries". As a result once you configure canned response libraries to queues CXasCode can no longer be used to manage queue configuration. I understand this can take longer to fix as Go SDK does not support this either.

I was thinking to add below to genesyscloud/routing_queue/resource_genesyscloud_routing_queue_schema.go and modify queue to work with but not too sure how long it will take.

`
// New subschema

queueMediaBaseSettingsResource = &schema.Resource{
	Schema: map[string]*schema.Schema{
		"media_subtype": {
			Description: "Media subtype, examples are whatsapp, twitter, webmessaging, facebook, sms, instagram & open",
			Type:        schema.TypeString,
			Required:    true,
		},
		"enable_auto_answer": {
			Description: "Indicates if auto-answer is enabled for the given media type or subtype (default is false).  Subtype settings take precedence over media type settings.",
			Type:        schema.TypeBool,
			Required:    true,
		},
	},
}


// Add "subtype_settings to queueMediaSettingsResource
    queueMediaSettingsResource = &schema.Resource{
	Schema: map[string]*schema.Schema{
		<.........>
		"subtype_settings": {
			Description: "Media subtype specific settings.",
			Type:        schema.TypeList,
			Optional:    true,
			Elem:        queueMediaBaseSettingsResource,
		},
	},
}

`

@charliecon
Copy link
Collaborator

Hi @TaisukChoi

Sorry for the very late response on this. The fields you mentioned above have been released on the Go SDK and will be added to the Terraform resource. We have created a ticket and will get a dev working on this as soon as we can.

Thanks for raising the issue.

-Charlie

(Tracking with DEVTOOLING-963)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants