I tried to put the following on the message field, but there is always an error during process execution.
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "This is unquoted text\n>This is quoted text\n>This is still quoted text\nThis is unquoted text again"
}
}
]
}
I use on the “Message” field on the Slack connector a variable called “message1” (as shown below).
When I start the process, I set the following variable.
{
"message1":{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "This is unquoted text\n>This is quoted text\n>This is still quoted text\nThis is unquoted text again"
}
}
]
}
}
The error is this one: Failed to invoke connector, received the following error: java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT at path $.data.text
Try putting the JSON in as stringified JSON. In other words, JSON content, but as a single string.
Like this:
'{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"This is unquoted text\\n>This is quoted text\\n>This is still quoted text\\nThis is unquoted text again"}}]}'