Genesys Cloud - Developer Community

 View Only

Discussion Thread View
  • 1.  How to update a script using terraform or API?

    Posted 05-13-2025 12:55

    My problem is when I want to modify the substitution block, can someone help me with an example?

    resource "genesyscloud_script" "script" {
      script_name       = "terraformTestNEW"
      filepath          = "./script/terraformTestNEW.json"
      file_content_hash = filesha256("./script/terraformTestNEW.json")
      substitutions = {
        Nombre = "Nombre2"
      }
    }

    It would also help me to know strategies to automate the transfer of queues and people. it can be using the CLI, terraform, the API or whatever you can think of.

    it would help me a lot to know your experiences.


    #CXasCode
    #PlatformAPI
    #PlatformCLI
    #Scripts

    ------------------------------
    Jesus Garces
    NA
    ------------------------------


  • 2.  RE: How to update a script using terraform or API?

    Posted 13 days ago

    Hi @Jesus Garces

    On your first question , there is a very good example for substitutions in our Hashicorp page examples.  Though it is for a flow resource, the same applies for scripts too. Hope this helps.



    ------------------------------
    Hemanth Dogiparthi
    Manager, Software Engineering
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources