Create a Work Order in Zoho FSM from an Invoice in Zoho Books

Create a Work Order in Zoho FSM from an Invoice in Zoho Books

Use case: Whenever an Invoice is created in Zoho Books, create a Work Order for it in Zoho FSM.
 
Follow the steps below to implement this use case:

Step 1: Create a connection for Zoho FSM in Zoho Books  

To create a connection for Zoho FSM that can be used in Zoho Books for invoking the Zoho FSM APIs, do the following:
  1. Log in to Zoho Books.
  2. Navigate to Settings > Developer Space > Connections and click New Connection.



  3. In the Create Connection page, select the Custom Services tab and click Create New Service.



  4. In the Create Service page, enter the following details and click Create Service.
    1. Service Name: Zoho FSM
      The Service Link Name will be automatically populated.
    2. Authentication Type: OAuth2
    3. Parameter Type: Header
    4. Generated Client ID, Client Secret
    5. Authorize URL: https://accounts.zoho.com/oauth/v2/auth?access_type=offline&prompt=consent
    6. Access Token URL: https://accounts.zoho.com/oauth/v2/token
    7. Refresh Token URL: https://accounts.zoho.com/oauth/v2/token
    8. Scope: ZohoFSM.modules.all
      Provide a Scope Display Name.



  5. Click Create Connection.
  6. Do the following and click Create And Connect:
    Connection Name: Zoho FSM
    Select the Scope ZohoFSM.modules.all.

In the custom function, where FSM APIs are used via the invokeURL task, use this Connection Link Name.
 


Additionally ensure that the status of the internal connection for Zoho Books Integration tasks is Connected. The green dot [] indicates that the connection is Connected.

Step 2: Create a custom function in Zoho Books  

Create a custom function that will generate a Work Order in Zoho FSM from an Invoice in Zoho Books.
  1. Navigate to Settings > Automation > Custom Functions and click New Custom Function.



  2. Enter the following details and click Save:
    1. Function Name: createwofrombooks
    2. Module: Invoice
    3. In the Deluge Script Editor, enter this script.

Step 3: Create a workflow rule in Zoho Books   

Create a workflow that will generate a Work Order in Zoho FSM whenever an Invoice is created in Zoho Books.
  1. Navigate to Settings > Automation > Workflow Rules and click New Workflow Rule.



  2. In the New Workflow Rule screen, enter the following details and click Next:
    1. Workflow Rule Name: CreateWOInZFSM
    2. Module: Invoice



  3. For Choose when to Trigger, enter the following details and click Next.
    1. Workflow type: Event Based
    2. When an Estimate is: Created



  4. Click Next for Filter the triggers.
  5. In the Actions section, do the following:
    1. Type: Custom Functions
    2. Name: The function created in the previous step.



  6. Click Save.

Testing the use case  

Following are the steps to test the use case discussed.
  1. Navigate to Sales > Invoices and click New.



  2. Enter the necessary details and save (Save as Draft, Save and Send, etc.) the invoice.
    Ensure that the contact you choose is present in Zoho FSM. A Service Address, Billing Address, and Email should be present for the contact. Since a work order in Zoho FSM should have atleast one service, ensure that you add to the invoice a service that is present in Zoho FSM. If there are no services in your invoice, in Zoho FSM create a dummy service with Unit Price zero, and add it to the invoice.

A new work order is created in Zoho FSM for the same customer for whom the invoice was created in Books.


 

    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





                        Still can't find what you're looking for?

                        Write to us:  support@zohoforms.com


                              



                            



                          Manage your brands on social media

                              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 SalesIQ Resources



                                                        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

                                                                                          • Associate FSM Records with Books/Invoice

                                                                                            You can instantly associate a FSM record with a specific Books/Invoice record using the link option available in individual FSM records. You can also instantly push a FSM record to Books/Invoice. In the FSM Companies, Contacts, or Services And Parts ...
                                                                                          • Setting up Integration for Zoho Invoice or Zoho Books

                                                                                            Zoho FSM leverages the power of Zoho Invoice/Books to handle and manage all your billing operations. It comes with built-in integration with Zoho Invoice, to handle and manage all the invoices and payments related to the services offered. This ...
                                                                                          • Automate creating and sending Invoice on work order creation

                                                                                            Usecase: When creating a work order, based on an user input, automatically create and send invoice for the work order. Follow the steps below to implement this usecase: Step 1: Create a custom field Step 2: Create a connection for Zoho FSM Step 3: ...
                                                                                          • Overview of Zoho FSM

                                                                                            What is Zoho FSM? Zoho FSM is a cloud application that offers an overarching solution for handling the entire life cycle of processes involved in the management and execution of field services. All processes that are pivotal to field services are ...
                                                                                          • Create a Work Order in Zoho FSM from a Task in Zoho Desk

                                                                                            Usecase: Create a Work order in Zoho FSM whenever a Task is added in Zoho desk. Step 1: Create a connection for Zoho FSM in Zoho Desk Step 2: Create a custom function Step 3: Create a workflow rule Step 1: Create a connection for Zoho FSM in Zoho ...
                                                                                          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