Sending emails via REST API for Sales Orders with no PDF attachments

Sending emails via REST API for Sales Orders with no PDF attachments

I'm trying to figure out how to use the Zoho CRM send_email API to send an email that is attached to the sales order but with no PDF attachment.  The API requires me to specify a template for a PDF attachment (inventory_details, inventory_template, etc.).  However, I want to send an email with no attachment.

We have a workflow rule in Zoho CRM that we created that sends emails attached to sales orders without attachments, so this seems to be possible, but I cannot figure out how to do it via the REST API.

Currently, our sales order has a field for shipping email address, which is where we want to send the email. We use that email address to find a contact in our system, and send the email to that contact.  However, sometimes that email address doesn't match up to a contact (common when the buyer is buying on behalf of someone else) or the email matches multiple contacts.  It would be much simpler to attach the email directly to the sales order with no PDF like we are doing in the workflow rule.

How can I do this via the REST API?  Thx.

Tech details:


Request Body:
{
    "from": {
        "user_name": "John Smith",
        "email": "john.smith@example.com"
    },
    "to": [
        {
            "user_name": "Chris Smith",
            "email": "chris.smith@example.org"
        }
    ],
    "org_email": true,
    "mail_format": "html",
    "template": {
        "id": "yyyyyyyyyyyyyyyyyyy"
    },
    "inventory_details": {
        "inventory_template": {
            "id": "zzzzzzzzzzzzzzzzzzz"
        }
    }
}

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方