Please help with my first custom action

Please help with my first custom action

Hi :)

I try to understand Deluge, but the help section is quite hard to understand. I can script (quite good) with Powershell and other scripting languages, so logic is not a problem,

I can also create Business rules for our Zoho ticket system.

What I want: I want to check if the text (description) of a request/ticket in our ticketsystem has certain values. If yes, then I want to resolve the ticket with a solution.

First I thought it's easy: create a custom function and return a bool:
bodytext = requestObj.get("description");
boolVal = bodytext.containsIgnoreCase("Test1234");
return boolVal;
Of course its not that easy, because a custom function in a business rule cant return a bool, but a map. And I have no idea what that means.

So maybe someone could be so kind to walk me through one time how to create a business rule that checks if there is a special content in the script (it will be several strings I test for and any of them existing should return true) and if yes, it will resolve the ticket.

Im also fine with a website that explains Deluge and how to use it in business rules. I can teach myself a new scripting language, but on the Deluge help there are very few standard varables. I had to ask the support how to get the text on a ticket in a varable since I could not find that anywhere. Its  requestObj.get("description")).

Thank you so much
Joachim




      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

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

                              Zoho CRM コンテンツ




                                ご検討中の方