my transformation is running only once

spaceman2023
Tera Contributor

I created a transformation between an incident(consumer) and case(provider). i added the transformation below as an inbound on the provider side. the issue is that it doesn't fire on updates. despite the fact that the field(state) has been set to sync on insert or update. any help would be appreciated

output.value = input.value;
output.label = input.label;
var state = object_data.parent.state;
var check = parseInt(input.value);
if(direction == "inbound"){
    if(check == 8 && !gs.nil(state)){
        output.value = 18;
        output.label = input.label;
    }
    else if(!gs.nil(state)){
	output.value = state;
    output.label = input.label;
    }

}
0 REPLIES 0