Triggered Task respond with plain unformed text (not JSON)

Hello,

How can I make a triggered pipeline respond with plain text vs something structured?

e.g., it should return:
My Return Text Here

and not anything like this:
[
{
returnText: “My Return Text Here”
}
]

Thanks!

You need to have an unlinked binary output view. With the latest release (4.17) you can change a Mapper’s output view to be binary and then write the string you want to $content. Would probably also be wise to set $['content-type'] to text/plain.

Here’s how you change the output view through the ‘Views’ tab in the Mapper settings:

I’m attaching a pipeline that demonstrates this:

PlainTriggered_2019_06_04.slp (2.4 KB)

(If you haven’t upgraded yet, you can use a DocumentToBinary snap in a similar fashion)

1 Like