Is it possible to send a newline via the Slack int...
# ask-community
j
Is it possible to send a newline via the Slack integration? I tried "\n" but it is sent literally :D
Copy code
@failure_hook(required_resource_keys={"slack"})
def slack_message_on_failure(context: HookContext):
    message = (
        f"Application database sync to our data warehouse failed: Operation {context.op.name} failed.\ņ"
        f"Please fix and rerun the associated operation."
    )
    context.resources.slack.chat_postMessage(channel="#test42", text=message)
dagster bot responded by community 1
a
Hey, you are using
and not
\n
in your code (notice the “’” under the “n”).
j
What the heck 😄
Thanks @Antoine Adam!