Forum Discussion

Ish's avatar
Ish
New Contributor III
7 years ago

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!

2 Replies

    • NAl's avatar
      NAl
      Contributor

      Hi Spiro,

      Below is the received error message. It doesn’t work either with 2 equal signs…

      Expression parsing failed near -- SSO__c >> = << TRUE (Reason: Attempt to use assignment at line 1:7, which is not supported in the expression language; Resolution: If you meant to compare two values, use two equals signs (==))

      • SpiroTaleski's avatar
        SpiroTaleski
        Valued Contributor

        @NAl

        If you have the expression button on, try:

        “CUSTOM_FIELD__c = TRUE”

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @NAl

    Use ‘=’ instead of ‘==’ on the place where you make comparison .

    Or please share the query that you are trying to execute.

    • NAl's avatar
      NAl
      Contributor

      Hi @Spiro_Taleski,

      After attempting lots of variations, this one did the trick:
      'CUSTOM_FIELD__c = TRUE'

      As always thanks for your help