We recently switched to salesforce service cloud, and have some trouble getting all of our customer service emails routed/threaded correctly.
In particular is an email thats sent from our codebase (rails) to a customer and at least one other contact, we cc ourselves so saleforce can be involved in the communication, but this does't thread correctly.
Essentially I need a case/thread_id before I send this email, or I need to send this email from saleforce itself so starts out with a thread_id (ref:) in the subject/email. Id rather the former (create case/get ref thread id programmatically) because there could be 1 or many cc's involved in this email and that sounds increasingly more difficult.
Im trying to read the very verbose docs around the case API's and it feels super fragmented trying to understand if either of those use cases are possible, any pointers to resources, soap or restful wold be super helpful!