Open Khandagale-Saurabh opened 1 month ago
/*
set @URL = QueryParameter('url') set @UTMDirect = QueryParameter('u') set @Variation = QueryParameter('pr') set @VariationAd = QueryParameter('prad') set @Quiz = QueryParameter('v') set @link1='https://api.whatsapp.com/send?phone=919002019002&text=Hello!%20I%20require%20assistance' SET @Group = "whatsapp"
IF NOT(ISNULL(@UTMDirect)) AND NOT(EMPTY(@UTMDirect)) THEN Set @Data = RetrieveSalesforceObjects('UTMc', 'Name,Sourcec', 'Name', '=',@UTMDirect ) if RowCount(@Data) > 0 then / Retrieve the first row / Set @value = Row(@Data, 1) / Retrieve the value of the 'Name' field / Set @name1 = FIELD(@value, 'Name') Set @Link='https://www.google.com/' Redirect(@Link) else / Handle case when no records are found / Set @name1 = "No matching record found" endif
Endif */