Skip to main content
August 18, 2023
Solved

Email Smart Service

  • August 18, 2023
  • 3 replies
  • 0 views

I want to keep a condition in email service , if it is dev environment it must show  as dev testing in body and if email service is triggered in QA environment then it must show as QA testing in body

    Best answer by vaishals

    Hi Fursat. You only need to create a single environmental constant(Checkbox while creating constant) . So while deploying change the constant value by editing properties file. In this way you can maintain different text for each environment.

    Values of constant

    DEV: this is from dev env

    TEST: this is from QA env

    PROD: ""

    So in email node, instead of if condition code you can directly add this constant.

    3 replies

    ignacio.moran
    August 18, 2023

    Hi Fursat, just put a constant which value is different in each environment.

    sabat0002Author
    August 18, 2023

    what I need to be compare with , in constant I  will keep the URL and then how can i compare it with .can you please help

     if(
    cons!App_URL1],
    "DEV TESTING",
    if(
    cons!App_URLS[2],
    "QA TESTING",
    "No testing",
    
    )
    )

    vaishals
    vaishalsAnswer
    August 18, 2023

    Hi Fursat. You only need to create a single environmental constant(Checkbox while creating constant) . So while deploying change the constant value by editing properties file. In this way you can maintain different text for each environment.

    Values of constant

    DEV: this is from dev env

    TEST: this is from QA env

    PROD: ""

    So in email node, instead of if condition code you can directly add this constant.