Trying to send email using CRM template via API from Creator

Trying to send email using CRM template via API from Creator

Hello Everyone,

I have been trying to send an email template that has been stored in CRM via an API function that I am executing in Zoho Creator. I am using the following function:

email_mp = Map();
email_mp.put("from",{"user_name":"xyz","email": zoho.loginuserid});
email_mp.put("to",{{"user_name":"Maaz Ansari","email":"maaz.ansari@basecampdata.com"}});
email_mp.put("template",{"id":"3205780000169019326"});
info email_mp;
email_mp_list = List();
email_mp_list.add(email_mp);
final_mp = {"data":email_mp_list};
esp = invokeurl
[
type :POST
parameters:final_mp + ""
connection:"zohocrmnew"
];
info Resp ;

However, it return an error that 

image.png

Now, the template that I am trying to send is from emails, like shown in the picture below:

image.png

Can somone please tell me a way on how can I do this?
I have been following this link but its so confusing and I am unable to understand it at all. 

Many Thanks,
Maaz Ansari

    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 コンテンツ




                              ご検討中の方