Hello this Transform works to ensure the attribute is not changed after the first run
{
"name": "Random Group - 1",
"type": "static",
"attributes": {
"sharedGroup": {
"attributes": {
"values": [
{
"attributes": {
"name": "sharedfilegroup"
},
"type": "identityAttribute"
},
{
"attributes": {
"value": "N/A"
},
"type": "static"
}
]
},
"type": "firstValid"
},
"Calculation": {
"type": "concat",
"attributes": {
"values": [
"Share Group:",
{
"type": "lookup",
"attributes": {
"table": {
"00": "50",
"01": "01",
"02": "02",
"03": "03",
"04": "04",
"05": "05",
"06": "06",
"07": "07",
"08": "08",
"09": "09",
"10": "10",
"11": "11",
"12": "12",
"13": "13",
"14": "14",
"15": "15",
"16": "16",
"17": "17",
"18": "18",
"19": "19",
"20": "20",
"21": "21",
"22": "22",
"23": "23",
"24": "24",
"25": "25",
"26": "26",
"27": "27",
"28": "28",
"29": "29",
"30": "30",
"31": "31",
"32": "32",
"33": "33",
"34": "34",
"35": "35",
"36": "36",
"37": "37",
"38": "38",
"39": "39",
"40": "40",
"41": "41",
"42": "42",
"43": "43",
"44": "44",
"45": "45",
"46": "46",
"47": "47",
"48": "48",
"49": "49",
"50": "50",
"51": "01",
"52": "02",
"53": "03",
"54": "04",
"55": "05",
"56": "06",
"57": "07",
"58": "08",
"59": "09",
"60": "10",
"61": "11",
"62": "12",
"63": "13",
"64": "14",
"65": "15",
"66": "16",
"67": "17",
"68": "18",
"69": "19",
"70": "20",
"71": "21",
"72": "22",
"73": "23",
"74": "24",
"75": "25",
"76": "26",
"77": "27",
"78": "28",
"79": "29",
"80": "30",
"81": "31",
"82": "32",
"83": "33",
"84": "34",
"85": "35",
"86": "36",
"87": "37",
"88": "38",
"89": "39",
"90": "40",
"91": "41",
"92": "42",
"93": "43",
"94": "44",
"95": "45",
"96": "46",
"97": "47",
"98": "48",
"99": "49"
},
"input": {
"type": "randomNumeric",
"attributes": {
"length": 2,
"requiresPeriodicRefresh": "false"
}
}
}
}
]
}
},
"value": "#if($sharedGroup=='N/A')$Calculation#{else}$sharedGroup#{end}"
},
"internal": false
}