Watcher Transform - Replace newline character on specific field in multiple documents

Hi, I'm currently building a watcher script to send data to 3rd party API, however the 3rd party API can't process the newline character ("\n") input. Some of my documents have newline character in specific field. there are usually more than 1 documents returned from "Input" query . I also use "foreach" in my watcher to send every returned documents. How can I transform the value of these specific field on every returned documents and replace the newline character with other character?

Thank you

Hi,

I deleted the transforms tag, because you ask about a watcher transform, not a transform provided by the transform feature. Unfortunately both share the same name. Sorry for the confusion.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.