This is a step-by-step guide on how to create a Zoho CRM form that can handle deals and accounts using Vue.js and Inertia Laravel. It covers the following topics:
- Setting up the project environment and installing the required dependencies
- Creating the database tables and models for deals and accounts
- Creating the routes, controllers and views for the form
- Adding validation, error handling and success messages to the form
- Testing the form functionality and submitting data to Zoho CRM
Using Vue.js components and Inertia Laravel to build a dynamic and responsive form that can interact with Zoho CRM API. The features include validation, error handling, loading indicators, and success messages. The installation requires cloning the repository, installing the dependencies, setting up the environment variables, and running the migrations.
This repository contains a simple crud built using laravel 8,asciisd/zoho, inertiajs and Vue 3.
- Application Server laravel 8
- Frontend Laravel Jetstream
- Zoho CRM integration asciisd_zoho
To create a deal and account in Zoho CRM using the Zoho CRM API. The form should contain **all**
the required fields to create these records and the records must be linked to each other. Additionally, an automatic token refresh mechanism must be implemented to allow creation of records from the form at any time.
- Get yourself a Zoho CRM account.
- Register your application
- PHP = ^7.3
- Laravel = ^8.0
-
Go to Zoho CRM Developer Console.
-
ADD CLIENT
Server-based Applications
. -
Enter Client Name
Any name you want
-
Enter Homepage URL
your base home url
-
Enter Authorized Redirect URIs
config('app.url') . /zoho/oauth2callback
or .env[ZOHO_REDIRECT_URI]
-
Go to your project location on terminal and enter
php artisan zoho:authentication
-
Copy the generated link and past it in the browser to complete the oAuth process.
Now Zoho CRM is ready to use.
composer i
npm i
php artisan migrate
- .env reqired:
APP_URL=[YOU_URL_HERE]
ZOHO_ACCOUNTS_URL=https://accounts.zoho.eu
ZOHO_API_BASE_URL=www.zohoapis.eu
ZOHO_CLIENT_ID=[ZOHO_CLIENT_ID]
ZOHO_CLIENT_SECRET=[ZOHO_CLIENT_SECRET]
ZOHO_REDIRECT_URI=[ZOHO_REDIRECT_URI]
ZOHO_CURRENT_USER_EMAIL=[YOU_URL_HERE]/zoho/oauth2callback
- Ability to create a deal and account in Zoho CRM
- Linking of the deal and account records in Zoho CRM
- Automatic token refresh mechanism for uninterrupted creation of records
- Validation of all form fields to ensure that valid values are entered
- Display of error messages if an invalid value is entered
- Display of a success message if the records are successfully created
- Display of an error message if the records fail to be created
- Use of Vue.js to create a dynamic and responsive user interface
- A submit button to create the deal and account records in Zoho CRM
- Integration with the Zoho CRM API for creating deals and accounts
- Implementation of the automatic token refresh mechanism
- Creation of the necessary routes and controllers to handle form submissions
The MIT License (MIT). Please see License File for more information.