How to extract URL parameters with Zoho Flow

How to extract URL parameters with Zoho Flow

Hello,
I try to extract different parameters like UTM and Ads platform id like MSCKLID. 
Ex. mydomain.com/?utm_source=1234

They aren't necessarly all filed due to the usage of different platform.
I have a field with the URL in Zoho CRM
I have individual field in Zoho CRM to send the Data to.

The trick is that I can't use functions with my current plan in Zoho CRM but my guess is that it's possible to do it with Zoho Flow. However, I don't know how to create the function / flows.

ChatGPT generate a code that is supposed to write but I can't use it for unknown reasons.

They either start with 
function getUTMParameters(url) { const urlParams = new URLSearchParams(new URL(url).search);

or 
let url = input.campaign_url;
The script says there an error at that line everytime.

I may be totally wrong with the approach however. 

Thanks in advance


      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 コンテンツ



                                ご検討中の方