Conditional Transform not evaluating Positive Condition

Hi Team,

I have a conditional transform that is evaluating the negative condition but not the positive one. How do I get it to evaluate the positive condition and place the value I need when the positive condition is true?

I want to apply it to an attribute on the IP. If it is true - it allows the attribute to display - if it is false it places the word false

{
    "id": "cdf6dc91-f932-4ae2-981c-3d677f2fca3d",
    "name": "Email Transform",
    "type": "conditional",
    "attributes": {
        "expression": "Employee Type eq 'Constractor'",
        "positiveCondition": "true",
        "negativeCondition": "false",
        "employeeType": {
            "attributes": {
                "sourceName": "HT SOurce",
                "attributeName": "Employee Type"
            },
            "type": "accountAttribute"
        }
    },
    "internal": false
}

A few things:

  1. you need to reference “employeeType” as a variable in your expression
  2. I’m guessing “Constractor” is an error and it should either be Contractor or Consultant:

Try:

{
    "id": "cdf6dc91-f932-4ae2-981c-3d677f2fca3d",
    "name": "Email Transform",
    "type": "conditional",
    "attributes": {
        "expression": "$employeeType eq 'Contractor'",
        "positiveCondition": "true",
        "negativeCondition": "false",
        "employeeType": {
            "attributes": {
                "sourceName": "HT Source",
                "attributeName": "Employee Type"
            },
            "type": "accountAttribute"
        }
    },
    "internal": false
}
1 Like