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