cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Triggered Task respond with plain unformed text (not JSON)

Ish
New Contributor III

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!

2 REPLIES 2

tstack
Former Employee

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.

image

Hereโ€™s how you change the output view through the โ€˜Viewsโ€™ tab in the Mapper settings:

mapper-binary-view

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)

patan
New Contributor III

Thank you. This solution works for me as well.