-
Notifications
You must be signed in to change notification settings - Fork 90
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
Feat/devtooling 653 - Implementing whatsapp resource #1588
base: dev
Are you sure you want to change the base?
Conversation
…er-genesyscloud into feat/DEVTOOLING-653
*/ | ||
|
||
// dataSourceConversationsMessagingIntegrationsWhatsappRead retrieves by name the id in question | ||
func dataSourceConversationsMessagingIntegrationsWhatsappRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls enable caching for datasources too.
name = "Test Integration Whatsapp" | ||
embedded_signup_access_token = "test_token" | ||
messaging_setting_id = genesyscloud_conversations_messaging_settings.settings.id | ||
supported_content_id = genesyscloud_conversations_messaging_supportedcontent.content.id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add activate section as well in this example
proxy := getConversationsMessagingIntegrationsWhatsappProxy(sdkConfig) | ||
|
||
// Activate WhatsApp integration if requested, otherwise proceed with update | ||
if activateWhatsapp := d.Get("activate_whatsapp").(*schema.Set); activateWhatsapp != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the user tries to make any other update.
this will always make an activate call of whatsapp, even if it is already activated
check for d.haschange of activate_whatsapp instead.
No description provided.