06-04-2019 12:33 PM
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!
06-04-2019 01:04 PM
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)
07-23-2020 01:15 AM
Thank you. This solution works for me as well.