Legacy Dev Forum Posts

 View Only

Sign Up

How to check for existing objects using CX As Code

  • 1.  How to check for existing objects using CX As Code

    Posted 06-05-2025 18:26

    mfmathis | 2023-05-25 18:11:28 UTC | #1

    I have built up a Terraform project to install a custom solution in a customer Genesys Org. The solution contains an itegration, data actions, data tables and flows. this all works fine. My question revolves around a common logging module we use at all our customer sites. Is there a way to check if the common module exists already and only install it if it does not already exists. I am afraid that if the common module already exists it will break the install process.

    Thanks. Mark


    John_Carnell | 2023-05-25 18:22:25 UTC | #2

    Hi Mark,

    I have not used this yet, but you could look at pre-commit condition. I know that Terraform is also getting ready to release a check{} feature that will tell allow you to run a data source lookup before the command is executed.

    Thanks, John Carnell Director, Developer Engagement


    This post was migrated from the old Developer Forum.

    ref: 20129