Remove Special Characters "\" using Zoho Deluge

Remove Special Characters "\" using Zoho Deluge

Who needs this? I don't know! I did, and I sure did not find any helpful information out there, not with this keyword though. So, if you find this article because you searched the same thing as I do, then hey, you're in luck! And do note that I am not a coder, but who cares, as long as we get the job done, right? So, here goes:
  1. //let's say we have a variable, a value that has "\" in it for whatever reason, and we would like to remove it, because of, well, reasons. For example
  2. var = "I am legend \\(just kidding\\)";
  3. //well you might ask, why would I have "\\" in my variable? One reason is that you used it in your search parameter, and "(" and other special characters cannot be accepted so you'd have to add "\", but now you need to remove it again after searching the records, bummer
  4. specialChar = ['\\'];  //yes, use single quote, trust me
  5. for each char in specialChar
  6. {
  7. newChar = char + "_"; //this is to combine the troublesome "\" with another character because heck, it has to be. Beats me why. Ask Zoho
  8. info newChar; // to know what you got so far
  9. // now to remove the "\"
  10. var = var.replaceAll(char, newChar); //believe me, the initial "\" in the 1st part of the "replaceAll" command is necessary
  11. var = var.replaceAll(newChar,""); //this is to remove all the special characters we added above
  12. info var; //now to get the result!
  13. }
In this case, the result should be "I am legend (just kidding)". Don't believe me? Copy my whole code and paste it on https://deluge.zoho.com/tryout
 and execute it!

Now you can use it to create/update record, or whatever you want for that matter. And, I am not sure if it works with other Zoho apps, you are very welcomed to try, though. Ok, I yapped too much already. That is all for today!

As always, good luck!

Nik, aplikasi.us
Zoho Premium Partner

p/s: Don't @ me, I'm not a coder nor was I aware of any article out there. My motto is, if it's stupid but it works, it's not stupid (most of the time, maybe). And if you don't want your code to be too long, you can just delete all my comments (the greyed-out texts) in the code above, goes without saying.

    Access your files securely from anywhere







                            Zoho Developer Community





                                                  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




                                                            • Sticky Posts

                                                            • Kaizen #197: Frequently Asked Questions on GraphQL APIs

                                                              🎊 Nearing 200th Kaizen Post – We want to hear from you! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
                                                            • Kaizen #198: Using Client Script for Custom Validation in Blueprint

                                                              Nearing 200th Kaizen Post – 1 More to the Big Two-Oh-Oh! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
                                                            • Celebrating 200 posts of Kaizen! Share your ideas for the milestone post

                                                              Hello Developers, We launched the Kaizen series in 2019 to share helpful content to support your Zoho CRM development journey. Staying true to its spirit—Kaizen Series: Continuous Improvement for Developer Experience—we've shared everything from FAQs
                                                            • Kaizen #193: Creating different fields in Zoho CRM through API

                                                              🎊 Nearing 200th Kaizen Post – We want to hear from you! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
                                                            • Client Script | Update - Introducing Commands in Client Script!

                                                              Have you ever wished you could trigger Client Script from contexts other than just the supported pages and events? Have you ever wanted to leverage the advantage of Client Script at your finger tip? Discover the power of Client Script - Commands! Commands


                                                            Manage your brands on social media



                                                                  Zoho TeamInbox Resources



                                                                      Zoho CRM Plus Resources

                                                                        Zoho Books Resources


                                                                          Zoho Subscriptions Resources

                                                                            Zoho Projects Resources


                                                                              Zoho Sprints Resources


                                                                                Qntrl Resources


                                                                                  Zoho Creator Resources



                                                                                      Zoho CRM Resources

                                                                                      • CRM Community Learning Series

                                                                                        CRM Community Learning Series


                                                                                      • Kaizen

                                                                                        Kaizen

                                                                                      • Functions

                                                                                        Functions

                                                                                      • Meetups

                                                                                        Meetups

                                                                                      • Kbase

                                                                                        Kbase

                                                                                      • Resources

                                                                                        Resources

                                                                                      • Digest

                                                                                        Digest

                                                                                      • CRM Marketplace

                                                                                        CRM Marketplace

                                                                                      • MVP Corner

                                                                                        MVP Corner







                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now


                                                                                            Zoho Show Resources


                                                                                              Zoho Writer Writer

                                                                                              Get Started. Write Away!

                                                                                              Writer is a powerful online word processor, designed for collaborative work.

                                                                                                Zoho CRM コンテンツ








                                                                                                  Nederlandse Hulpbronnen


                                                                                                      ご検討中の方