โ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.