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

    Access your files securely from anywhere









                          Zoho Developer Community




                                                • Desk Community Learning Series


                                                • Digest


                                                • Functions


                                                • Meetups


                                                • Kbase


                                                • Resources


                                                • Glossary


                                                • Desk Marketplace


                                                • MVP Corner


                                                • Word of the Day


                                                • Ask the Experts





                                                          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

                                                                                            Get Started. Write Away!

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

                                                                                              Zoho CRM コンテンツ






                                                                                                Nederlandse Hulpbronnen


                                                                                                    ご検討中の方