Generate Barcode using third-party API

Generate Barcode using third-party API

Requirement  

Generate a barcode based on the provided IMEI (International Mobile Equipment Identity) number using a third-party API.

Use Case  

A mobile store uses an order management application to manage their orders. The application has a form called Product. When a product is added to the form, corresponding barcode will automatically be generated and uploaded in the IMEI_barcode field. The store can later stick the barcode on the mobile phone for quick retrieval for the IMEI number.

Steps to follow  

1. Create a form with the following details: 
Form
Form Link Name
Field Type
Field Name
Field Link Name
Product
Product
Dropdown
  • Apple
  • Samsung
  • One Plus
Product Group
 
Product_Group
Single line
Product Name
Product_Name
Single line
IMEI Number
IMEI_Number
Image
IMEI Barcode*
IMEI_Barcode
notes
Add Notes
 
 
* Check the Link browse option from field properties of the Image field. This allows you to directly add the URL of the barcode image you want to upload.
 
2. Create a workflow with the following details.
 
4. Click Add New Action and add the following snippet:
  1. //Construct an image HTML tag that invokes the third-party API to generate barcode and upload the link to the Image field
  2. input.IMEI_Barcode = "<img src=\"http://bwipjs-api.metafloor.com/?bcid=code128&text=" + input.IMEI_Number + "\"/>";

  3. // Show the preview of the generated code using notes field
  4. input.notes = "Generated Code:<br><br><div><img src='http://bwipjs-api.metafloor.com/?bcid=code128&text=" + input.IMEI_Number + "'/><br/></div>";

See how it works         

Points to note  

  • This tutorial uses an open-source barcode generator API to achieve the desired result. You can use any API you wish to generate the barcode.
  • The same procedure can also be used to generate any coded image. For example, use the below script to generate QR code instead of barcode:
  1. input.notes = "Generated Code:<br><br><div><img src='https://qrcode.tec-it.com/API/QRCode?data=" + input.IMEI_Number + "' width='150'/><br/></div>";
  2. input.imageField = "<img src='https://qrcode.tec-it.com/API/QRCode?data=" + input.IMEI_Number + "'/>";



    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








                                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

                                                                                                  • 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 ...
                                                                                                  • Hotel management

                                                                                                    This app has been published in accordance with Marketplace review process. For pricing details, you can refer to this page. Category - Hospitality Vendor - Zoho Corporation Pricing - Free Overview Say goodbye to thick registry books and run your ...
                                                                                                  • Image properties

                                                                                                    Set image properties for image field Refer to this page to learn about the Image field The image field allows you to perform the following customizations for the user experience of the image field in your form: Aspect ratio Compression Browse options ...
                                                                                                  • Image tag

                                                                                                    <image> The <image> tag defines an image. Parent tag : <pc> Child tag : -- Attributes 1. Type The type attribute specifies the type of image to be added. Possible Values icon computer weburl Default Values weburl 2. value The value attribute ...
                                                                                                  • Education Management

                                                                                                    This app is published in accordance with Marketplace review process. For pricing details, you can refer to this page. Category - Education Vendor - Zoho Corporation Pricing - Free Overview Managing an educational institution is no simple task. The ...
                                                                                                    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