Re: Parse parameters from query string

Tamir_Belzer_TB
Level 2

Parse parameters from query string

Hi, what is the most effective way to parse custom parameters from a URL into custom fields in Marketo? preferably from within Marketo 

Tags (2)
6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Parse parameters from query string

Very simple with a webhook-compatible service, impossible without.

Jo_Pitts1
Level 10 - Community Advisor

Re: Parse parameters from query string

@Tamir_Belzer_TB , in what context?  If it's a form fill then you can do it easily using hidden fields, and Marketo's inbuilt functionality.

Anything else, then I agree with @SanfordWhiteman 

Cheers

Jo

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Parse parameters from query string

Yeah, I assumed this was referring to a URL already stored in a Marketo field, not one that could be parsed on the client side.

Tamir_Belzer_TB
Level 2

Re: Parse parameters from query string

Hi, thanks. I was referring to the query parameters that is on the form fill out activity. Also, do you know if there's a way BTW to capture these parameters on a custom field? 

SanfordWhiteman
Level 10 - Community Moderator

Re: Parse parameters from query string

On the server side? If you trigger on Fill Out Form you can pass the whole {{trigger.referrer}} to a webhook and write back query params to individual custom fields. It's easy but again not something you can do in a native flow step.

Tamir_Belzer_TB
Level 2

Re: Parse parameters from query string

Thanks. We're using Workato to parse the params from a custom Marketo field. This is working, the only challenge is getting the full URL with the params to a custom field in Marketo. I'll try the trigger.referrer but from several tests I did it didn't copy the whole URL with the params. Not sure if it's something I did wrong or this is how Marketo works.