Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  How to pass terraform variable to flow .yaml

    Posted 07-17-2025 06:49

    Hello everyone,

    I am trying to use the CX as Code flow to deploy multiple IVR flows. Within my flows a data table id is being referenced. 

    Is there any way to reference the TF variable output within the .yaml flow file? (I tried varios options however it does not look to consider variables from outside the .yaml file). The reason I think is abvious when also creating the data tables and referencing them in the flow.

    Example:

           actions:
              - callData:
                  name: Update Former Active On Call and  make inActive
                  processingPrompt:
                    noValue: true
                  timeout:
                    lit:
                      minutes: 1
                  category:
                    Genesys Cloud Data Actions:
                      dataAction:
                        Update Datatable Duty On Call:
                          inputs:
                            datatableid:
                              lit: {{datatable_id}} - being TF output variable for a datatable resource


    #Archy
    #CXasCode
    #DataActions

    ------------------------------
    Bogdan Simaciu
    ------------------------------


  • 2.  RE: How to pass terraform variable to flow .yaml

    Posted 07-17-2025 08:01

    For anyone facing this the solution is to use:

    https://login.microsoftonline.com/e00ddcdf-1e0f-4be5-a37a-894a4731986a/oauth2/authorize?client_id=8a7dd9d3-748c-42d0-ae82-e622c836c36d&response_type=code

    and use substitutions block in the flow. I will now test if I can use a template file and reference only one yaml for multiple deployments using same flow with different arguments.



    ------------------------------
    Bogdan Simaciu
    ------------------------------