Hi Daniel
One thing you can try is creating a new transformer within one of your actions/steps and set “Transform Data” to Node.js. In the Javascript code you can then check the value coming in, and then use an if statement to modify it. For example, below is a quick sample that will check if my incoming field $request.body.name is = to space. If it is, then it replaces it with the value I provide in unknownname.
unknownname is a project parameter I created to avoid hardcoding.
You don’t have to use a parameter but if you do, then you can change the label in the parameter instead of editing the transformer.
You can add transformers when configuring the action/step. Click the “Add New” button in the Transform section. Then select Node.js in the “Transform Data” field. You will see a small editor on the right side with some sample code. You can then put your own logic in here. In my example I just reference the json data that is available.
Of course the names and locations will be different for you.
Does this make sense?
Note: this is one way to do it. If I think of others I will let you know.
#webMethods-io-Integration#webMethods-cloud#webMethods