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;
    }

}
1 ACCEPTED SOLUTION

Kenny Caldwell
ServiceNow Employee

You are probably running into the issue. See solution.

 

Service Bridge / Exchange Transform is not triggering 

View solution in original post

1 REPLY 1

Kenny Caldwell
ServiceNow Employee

You are probably running into the issue. See solution.

 

Service Bridge / Exchange Transform is not triggering