Invoke Connector Task

Invoke Connector Task

This guide will help you with the following:
      1. Syntax
      2. Example

After a connector is published and associated with an extension or vertical solution, it can be invoked whenever necessary. You can invoke a connector using a custom function.

Syntax

  1. <Response> = zoho.crm.invokeConnector("<ConnectorAPI Unique Identifier>", <parameterMap>);
where,
  1. <Response> is the task response returned as a Map.
  2. parameterMap is used to map any dynamic value present in the connector with user inputs.
ConnectorAPI Unique Identifier refers to the connector API you want to use.
You can find details of the Connector API unique identifier in the List Of APIs page (screenshot below). Navigate to this page by clicking Connectors in the left pane, clicking the Associated Connectors tab, then clicking View All APIs for the desired connector.

In the List Of APIs page, click the name of the API that you want to use. The API Unique Identifier will be displayed in a pop-up as shown below.


Example

Post data from extension or vertical solution to your third party account.

Suppose you want to add the contacts from your extension or vertical solution to Google Contacts whenever a new contact with India as the mailing country is added. To achieve this, you need to write a custom function to invoke the connector and associate the custom function to a workflow rule.

Create a workflow rule with the following inputs:
1. Module: Contacts
2. Rule Trigger: A Record Action whenever a record is created
3. Rule Criteria: Mailing Country is India
4. Actions: Call Functions

The script for the custom function to be added is:
  1. Fnam = input.contact.get("First_Name");
  2. Lnam = input.contact.get("Last_Name");
  3. mail = input.contact.get("Email");
  4. Mob = input.contact.get("Mobile");
  5. map = {"Fname" : Fnam, "Lname" : Lnam, "Email" : mail, "Mobile" : Mob};
  6. response = zoho.crm.invokeConnector("googledrive.contacts",map);

For more details on how to create a connector and invoke it in a custom function, click here.

    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION









                                      You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                          Manage your brands on social media

                                            Zoho Desk Resources

                                            • Desk Community Learning Series


                                            • Digest


                                            • Functions


                                            • Meetups


                                            • Kbase


                                            • Resources


                                            • Glossary


                                            • Desk Marketplace


                                            • MVP Corner


                                            • Word of the Day


                                              Zoho Marketing Automation

                                                Zoho Sheet Resources

                                                 

                                                    Zoho Forms Resources


                                                      Secure your business
                                                      communication with Zoho Mail


                                                      Mail on the move with
                                                      Zoho Mail mobile application

                                                        Stay on top of your schedule
                                                        at all times


                                                        Carry your calendar with you
                                                        Anytime, anywhere




                                                              Zoho Sign Resources

                                                                Sign, Paperless!

                                                                Sign and send business documents on the go!

                                                                Get Started Now




                                                                        Zoho TeamInbox Resources



                                                                                Zoho DataPrep Resources



                                                                                  Zoho DataPrep Demo

                                                                                  Get a personalized demo or POC

                                                                                  REGISTER NOW


                                                                                    Design. Discuss. Deliver.

                                                                                    Create visually engaging stories with Zoho Show.

                                                                                    Get Started Now









                                                                                                        • Related Articles

                                                                                                        • Invoke APIs

                                                                                                          Below are some extra APIs that you can use in your extension.  ROUTE_TO INSERT MODAL_CLOSE RESIZE ROUTE_TO This command navigates between the multiple subtabs on the ticket detail page. Listed below are the different routes supported: ...
                                                                                                        • Desk Invoke API

                                                                                                          Desk's invoke API acts as a proxy between the extension and the External Services or Desk for calling the APIs. With Desk Invoke API, Can access the Zoho Desk's APIs Can access the External Services's APIs Can access the Extension Data Specific APIs ...
                                                                                                        • URL invoke type extensions

                                                                                                          What are extensions in Cliq ? Extensions are a great way to connect to a third party service thereby bringing in your everyday tools and work items together in one place- Cliq.  URL invoke type extensions  URL invoke type extensions are as same as ...
                                                                                                        • Connectors

                                                                                                          Connectors power up your CRM and add functionalities by Integrating with other services through its APIs (OAuth 2.0). Getting Started with Connectors Connectors enable the process of establishing integrations between the solutions built over Vertical ...
                                                                                                        • Integration with QuickBooks

                                                                                                          The intuit.quickbooks task is used to access your QuickBooks data from your Zoho CRM account. For this task to work effectively, your CRM account has to be integrated with your QuickBooks account. To integrate Zoho CRM with QuickBooks, download and ...
                                                                                                          Wherever you are is as good as
                                                                                                          your workplace

                                                                                                            Resources

                                                                                                            Videos

                                                                                                            Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                            eBooks

                                                                                                            Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                            Webinars

                                                                                                            Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                            CRM Tips

                                                                                                            Make the most of Zoho CRM with these useful tips.



                                                                                                              Zoho Show Resources