Autopopulate Zoho Creator field with Zoho People data | Zoho Creator Academy

Autopopulate Zoho Creator field with Zoho People data

Requirement

Autopopulate Zoho Creator field with employee information stored in Zoho People.

Use case

Let's assume an organization named Zylker has a private library. The regular users must purchase a membership in order to access the library, however, Zylker employees can use the library free of cost. Zylker uses Zoho People to manage their employees and a library management Zoho Creator app to manage the library. On entering the Zylker employee ID in the Borrow Resource form which is used to loan books from the library, the employee's name will be fetched from Zoho People and auto populated in the Zylker Member field.

Steps to follow

1. Create two forms with the following details:

Form

Form Link Name

Field Type

Field Name

Field Link Name

Add Member

Add_Member

Number

Member ID

Member_ID

Name

Name

Name

Phone Number

Phone Number

Phone_Number

Address

Address

Address

 

Borrow Resource

 

Borrow_Resource

Radio

Are you a Zylker employee?

 

Are_you_a_Zylker_employee

  • Yes

  • No

Lookup (Add Member)

 

Member

Member

Single Line

Employee ID

Employee_ID

Single Line

Zylker Member

Zylker_Member

Single Line

ISBN/Barcode

ISBN_Barcode

Date

From Date

From_Date

Date

To Date

To_Date


2. Create and authorize Zoho People connection with the following details. This connection will be used in step 8 in the Deluge integration task to fetch employees' information from Zoho People.




3. Create a workflow to execute on load of the the Borrow Resource form.



4. Click Add New Action and select Deluge Script. Add the below code:
  1. hide Employee_ID ;
  2. hide Zylker_Member ;
  3. hide Member ;
5. Create another workflow to execute on user input of the Are you a Zylker employee? field:



6. Click Add New Action and save the following Deluge snippet in the Deluge editor. This script dynamically shows/ hides Employee_ID, Zylker_Member, and Member fields.
  1. if(Are_you_a_Zylker_employee == "Yes")
  2. {
  3.  show Employee_ID;
  4.  show Zylker_Member;
  5.  disable Zylker_Member;
  6.  hide Member;
  7. }
  8. else if(Are_you_a_Zylker_employee == "No")
  9. {
  10.  show Member;
  11.  hide Employee_ID;
  12.  hide Zylker_Member;
  13. }
7. Create another workflow to execute on user input of the Employee ID.



8. Click Add New Action and save the following Deluge snippet in the Deluge editor. 
  1. // Fetch the Zoho People record that matches the inputted employee ID using Zoho People -Get Records integration task
  2. searchMap = Map();
  3. searchMap.put("searchField","EmployeeID");
  4. searchMap.put("searchOperator","Is");
  5. searchMap.put("searchText",Employee_ID);

  6. response = zoho.people.getRecords("P_Employee",0,1,searchMap,"people_connection");

  7. // Populate the Zylker_Member field with the fetched value
  8. Zylker_Member = response.get(0).get("FirstName") +" "+ response.get(0).get("LastName");

See how it works



  1. Zoho People integration task
  2. Show/Hide fields
  3. Disable fields
  4. Connections

    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

                                                                       
                            



                            





                                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







                                                                                            You are currently viewing the help articles of Sprints 1.0. If you are a user of 2.0, please refer here.

                                                                                            You are currently viewing the help articles of Sprints 2.0. If you are a user of 1.0, please refer here.



                                                                                                  • Related Articles

                                                                                                  • Auto populate a field based on the selection from a lookup dropdown

                                                                                                    Requirement   When a value is chosen from a lookup dropdown, related values are populated in the other fields of the same form. Use Case   An order management app contains a form to store order details. When the admin chooses the customer name from ...
                                                                                                  • Add subform rows with dynamic data from another subform

                                                                                                    Requirement             Automatically add rows to a subform and populate it with dynamic data fetched from another subform. Use Case   A form named Orders Database contains customer details and their frequent orders in a subform. We have another ...
                                                                                                  • Building an employee dashboard

                                                                                                    Requirement   Create an employee dashboard with buttons that will help the employees to check in and out, find the total number of logged-in hours and apply for leave. Use Case   An Employee Management application has a dashboard for their employees. ...
                                                                                                  • Capture data using NFC

                                                                                                    Requirement Capture data from NFC supported tags. Use Case An organization wants a mechanism where its employees can submit feedback about its cafeteria and restrooms by tapping their NFC- enabled ID cards against the feedback collecting ...
                                                                                                  • Automatically populate data by scanning barcode

                                                                                                    Requirement Scan a barcode to fetch the required details stored in another app. Use Case A mobile store uses an order management application to manage their orders. When a product is added to the form, a corresponding barcode is automatically ...
                                                                                                    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