function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chiel de Graaf.Chiel de Graaf. 

Horizontal line under slack post from Salesforce

Hi all,

I am wondering if it is possible to put a horizontal line under a slack post from Salesforce.
For now i used just underline, but on different devices it displays differently.
@InvocableMethod(label='Post to Slack')
public static void postToSlack(List<oppty> oppties) {
Oppty o = oppties[0]; // If bulk, only post first to avoid overloading Slack channel
Map<string,object> msg = new Map<string,object>();
msg.put('text', o.stage + '\r' + '\ncase number: *' + o.casenumber + '*' + '\r' +
'\n__________________________________________________________________');
msg.put('mrkdwn', true);
String body = JSON.serialize(msg);
System.enqueueJob(new QueueableSlackCall(slackURL, 'POST', body));
}

Anyone knows how to achieve this?

Regards
Chiel