Zoho FSM | Create a Request in Zoho FSM from your website

Create a Request in Zoho FSM from your website

Usecase: Create a Request in Zoho FSM whenever user submits a form in your website. The user has to provide an email address of an existing Zoho FSM Contact. This can be achieved in Zoho FSM using the Create Request API.

To do so, you need to follow the steps below:

Step 1: Create a Creator App 

  1. Log in to the Creator App.
  2. Choose Solutions from the left menu and click Create Solution.



  3. Click Select for Applications.



  4. Select Create for Create from scratch.



  5. Enter an Application Name and click Create Application.



  6. Click Create new form.



  7. In the Create Form page, click From scratch.



  8. Enter a form name and click Create Form.



  9. Add the following fields and click Done.
Field Name
Mandatory
Field Type
Field Values
Summary
Yes
Single Line
 
Priority
 
Drop Down
Low, Medium, High, Critical
Due Date
 
Date
 
Name
 
Name
 
Email
Yes
Email
 
Phone
 
Phone
 
Service Address

Address
 
Billing Address

Address
 
Preferred Date 1
             
Date
 
Preferred Date 2
             
Date
 
Preferred Time
 
Drop Down
Anytime, Morning, Afternoon, Evening
Preference Note
 
Multi Line
 
         

 
The Creator app is created. Click Access this application to use the app.

Step 2: Create a Connection for the Creator App  

  1. Click the Creator icon in the top left corner.



  2. Click Microservices and click Create New.



  3. Click Pick & Create for Connections.



  4. Click Zoho in the left menu.



  5. Search for Zoho OAuth and click it.



  6. In the Zoho OAuth - Add connection dialog, do the following:
    1. Enter a Connection Name
    2. Select FSM from the list of applications
    3. Select all the scopes.
    4. Click Create And Authorize.



  7. In the <Connection Name> - Link Account dialog, do the following:
    1. Enter a Name of Authorization Account
    2. Select Production for Use Authorization for following Environments
    3. Click Authorize.



  8. Click Accept in the authorization page.

Step 3: Enable Connection access for the Creator App 

The Connection needs to be made accessible to the Creator apps. To do so:
  1. Toggle the connection access to ON.
    In the custom function, where FSM APIs are used via the invokeURL task, use the Link Name of the connection.

Step 4: Create a Workflow for the Creator App 

A workflow rule needs to be created to trigger a function that will create a request in Zoho FSM.
 
To create a workflow rule:
  1. Navigate to your Creator form and click Edit this application.



  2. Click Workflow.



  3. Click Create Workflow.



  4. Enter the following details and click Create Workflow.
    1. Run when a record is: Created
    2. When to trigger workflow: Successful form submission
    3. Name the workflow: FSM Request Creation


The workflow is created. Now you need to associate an action with it. In our case, it will be a function to create a request.

To add an action (Function):

  1. Click Add New Action.



  2. In the Add New Action overlay, click Deluge Script.



  3. In the Deluge Script Editor, add the below script for creating a request and click Save.
    In the script, ensure that the parameter names (e.g. input.Summary) are the same as the Field link name of the fields.
customer_email = input.Email;
search_resp = invokeurl
[
url :"https://fsm.zoho.com/fsm/v1/Contacts/search?api_name=Email&value=" + customer_email
type :GET
connection:"fsm"
];
customer_id = search_resp.get("data").get(0).toMap().get("id");
customer_resp = invokeurl
[
url :"https://fsm.zoho.com/fsm/v1/Contacts/" + customer_id
type :GET
connection:"fsm"
];
customer_data = customer_resp.get("data").get(0).toMap();
Billing_Address_Map = customer_data.get("Billing_Address").toMap();
if(Billing_Address_Map != null)
{
billing_Address_map = Map();
billing_Address_map.put("id",Billing_Address_Map.get("id"));
}
Service_Address_Map = customer_data.get("Service_Address").toMap();
if(Service_Address_Map != null)
{
service_Address_map = Map();
service_Address_map.put("id",Service_Address_Map.get("id"));
}

territoryResp = invokeurl
[
url :"https://fsm.zoho.com/fsm/v1/Territories"
type :GET
connection:"fsm"
];
terrId = territoryResp.get("data").get(0).get("id");

createMap = Map();
createMap.put("Summary",input.Summary);
createMap.put("Contact",customer_id);
createMap.put("Priority",input.Priority);
createMap.put("Billing_Address",billing_Address_map);
createMap.put("Service_Address",service_Address_map);
createMap.put("Phone",input.Phone_Number);
Preference_Map = Map();
Preference_Map.put("Preferred_Time",input.Preferred_Time);
Preference_Map.put("Preference_Note",input.Preference_Note);
createMap.put("Preference",Preference_Map);
createMap.put("Territory",terrId);
createList = list();
createList.add(createMap);
NewCreateMap = Map();
NewCreateMap.put("data",createList);
create_resp = invokeurl
[
url :"https://fsm.zoho.com/fsm/v1/Requests"
type :POST
parameters:NewCreateMap.toString()
connection:"fsm"
];
info create_resp;
 
            


  1. Click Edit this application.



  2. Click Open Form Builder.



  3. Select the field whose link name you want to view.


Step 5: Publish the Creator App

  1. Under Operations, click Publish.



  2. Click Publish Component.



  3. In the Publish Component popup, select the following values and click Publish.
    1. Application: FSM - Create Request
    2. Component: Request Details (Form)


You need to use the Embed Code to add this form to your website.


Step 6: Create a website using Zoho sites

  1. Log in to Zoho Sites.
  2. Click Create New Website.
  3. Enter a website name, pick your website's category, and click Choose Theme.



  4. Choose a template you want to use and click Customize.



  5. Choose the Color, Font, Header, and Banner of your liking and click Finish.



  6. Click the area in the website where you want to place the request form and click Add Element.



  7. Select Embed Iframe from Elements > Others.



  8. In the Embed code dialog, paste the iframe code generated in the previous step and click Ok.



    The request form will be embedded in your website.
  9. Save the changes and click Publish.



  10. Provide your domain details and click Publish.
    You can either choose a free subdomain of zohosites.com, or use a domain you already own.
     

Testing the usecase

Access your website.
 

 
Enter the details in the form and click Submit. Please use the email ID of an existing Zoho FSM contact with a service and billing addresses.
 

 
A new request is created in Zoho FSM.
 


      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          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







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit
                              Intake FormsLegalMobile App
                              Form DesignerHRMobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsEncrypted Forms

                              Secure Forms

                              WCAG

                                      Create. Review. Publish.

                                      Write, edit, collaborate on, and publish documents to different content management platforms.

                                      Get Started Now






                                                        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

                                                              Use cases

                                                              Make the most of Zoho Desk with the use cases.

                                                               
                                                                

                                                              eBooks

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

                                                               
                                                                

                                                              Videos

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

                                                               
                                                                

                                                              Webinar

                                                              Sign up for our webinars and learn the Zoho Desk basics, from customization to automation and more

                                                               
                                                                
                                                              • Desk Community Learning Series


                                                              • Meetups


                                                              • Ask the Experts


                                                              • Kbase


                                                              • Resources


                                                              • Glossary


                                                              • Desk Marketplace


                                                              • MVP Corner

                                                                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 Demo

                                                                                                  Get a personalized demo or POC

                                                                                                  REGISTER NOW


                                                                                                    Design. Discuss. Deliver.

                                                                                                    Create visually engaging stories with Zoho Show.

                                                                                                    Get Started Now









                                                                                                                        • Related Articles

                                                                                                                        • Create a Request in Zoho FSM from a Ticket in Zoho Desk

                                                                                                                          Use case: Create a Request in Zoho FSM when the status of a Zoho Desk ticket changes to Moved to FSM. The created request will have a custom field with the ID of the Zoho Desk ticket from which it was created. Step 1: Create a custom status in Zoho ...
                                                                                                                        • Create Requests in Zoho FSM from Zoho CRM Deals

                                                                                                                          Usecase: Using a custom button, push Deals in Zoho CRM as Requests to Zoho FSM. Also, create a related list in the Deals record that lists the Requests created for the Deal. Step 1: Create a connection for Zoho FSM in Zoho CRM Step 2: Create a custom ...
                                                                                                                        • 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 ...
                                                                                                                        • Essentials of Zoho FSM

                                                                                                                          Key Terms Crew A crew consists of several field agents who are grouped together to conduct a specific task. Each crew is assigned a lead. Dispatch Console The scheduling tool from which the service appointments are scheduled and dispatched by users ...
                                                                                                                        • Using Sinch MessageMedia to notify the customer via SMS about a new Zoho FSM request

                                                                                                                          Use case: Using Sinch MessageMedia, text message the customer about a new request created for them. We will be using Zoho Flow to automate this. Follow the steps below to implement this use case: In Zoho Flow, click on My Flows in the left menu 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