Associate an Email to a Record

POST {{api-domain}}/crm/v4/Deals/{{record_id}}/actions/associate_email

Zoho CRM allows its users to associate emails with record entities. You can also associate an email entry with a record, and map another record to the same. For example, if you are associating an email to a Deal, you might also need to map a contact with it. This is facilitated using the associate email API.

Request Body

{"Emails"=>[{"from"=>{"user_name"=>"user1", "email"=>"test@zoho.com"}, "to"=>[{"user_name"=>"user2", "email"=>"test1@zoho.com"}], "cc"=>[{"user_name"=>"user3", "email"=>"test2@zoho.com"}], "bcc"=>[{"user_name"=>"user4", "email"=>"test3@zoho.com"}], "subject"=>"Mail subject", "content"=>"<h3><span style=\"background-color: rgb(254, 255, 102)\">Mail is of rich text format</span></h3><h3><span style=\"background-color: rgb(254, 255, 102)\">REGARDS,</span></h3><div><span style=\"background-color: rgb(254, 255, 102)\">AZ</span></div><div><span style=\"background-color: rgb(254, 255, 102)\">ADMIN</span></div> <div></div>", "mail_format"=>"html", "date_time"=>"{{date_time}}", "sent"=>true, "attachments"=>[{"id"=>"{{attachment_id}}", "name"=>"{{attachment name}}"}], "linked_record"=>{"id"=>"{{record_id}}", "name"=>"{{Full_Name}}", "module"=>{"api_name"=>"{{linked_module_api_name}}", "id"=>"{{linked_module_id}}"}}, "original_message_id"=>"{{user_defined_message_ID_from_the_email_header}}"}]}