Slack Technologies Inc forecast a bigger-than-expected loss for the third quarter on Wednesday, as the workplace messaging and communication platform invests heavily to attract paid customers and organizations in the face of competition from companies like Microsoft Corp .