Customs functions and workflows - Invoices

Customs functions and workflows - Invoices

Summary

To enable ALIX to create a draft invoice in Zoho Books, it's necessary to create custom functions and workflows in Zoho Books. Theses automations manage synchronisation between the two applications for invoices create, update and delete.

It is mandatory to have previously created a connection between the applications. To know how to create a connection, click here.

 Create and update

 1. Custom function

  1. Go to Settings -» Automation -» Custom functions

  2. Create a new function.

    1. Name the function.

    2. Select the Invoice module.

    3. Copy/paste this function :

      url = "https://smart.alix.ai/api/integrations/zoho-books/invoices";
      bodyMap = Map:String();
      bodyMap.put('invoice',invoice);
      response = invokeurl
      [
      url :url
      type :PUT
      parameters:bodyMap
      connection:"alix"
      ];
At line 9, replace "alix" with the custom function's name

 2. Workflow rule

  1. Go to Settings -» Automation -» Workflow rules.

  2. Create a new workflow.

  3. Entrer the following information : 

            
            

 Delete

 1. Custom function

  1. Go to Settings -» Automation -» Custom functions

  2. Create a new function.

    1. Name the function.

    2. Select the Invoice module.

    3. Copy/paste this function :

      url = "https://smart.alix.ai/api/integrations/zoho-books/invoices";
      invoice.put('exist',false);
      bodyMap = Map:String();
      bodyMap.put('invoice',invoice);
      response = invokeurl
      [
      url :url
      type :PUT
      parameters:bodyMap
      connection:"alix"
      ];
At line 10, replace "alix" with the custom function's name

 2. Workflow rule

  1. Go to Settings -» Automation -» Workflow rules.

  2. Create a new workflow.

  3. Entrer the following information : 




    • Related Articles

    • Customs functions and workflows - Bills

      Summary To enable ALIX to create a draft bill in Zoho Books, it's necessary to create custom functions and workflows in Zoho Books. Theses automations manage synchronisation between the two applications for bill create, update and delete. It is ...
    • Customs functions and workflow - Customers

      Summary To synchronize Zoho Books's clients to ALIX's contacts, it's necessary to create custom functions and workflows in Zoho Books. Theses automations manage synchronisation between the two applications for clients create, update and delete. It is ...
    • Customs functions and workflow - Vendors

      Summary To synchronize Zoho Books's vendors to ALIX's contacts, it's necessary to create custom functions and workflows in Zoho Books. Theses automations manage synchronisation between the two applications for vendors create, update and delete. It is ...
    • Release June 15th, 2023 (v.10.7.18)

      June 15, 2023 Context This update brings some minor improvements and fixes. News ✯ Pro Forma Invoice New configuration to allow generating basic pro forma invoices in shipments to help clear customs. This configuration can be found in the inventory ...
    • Release February 14th, 2022 (v.9.15.1)

      February 14, 2022  Context This update brings minor improvements and bug corrections. News ✯ Automatically calculated project payment status The payment status of a project is now dynamically calculated based on the status of invoices associated with ...