Parse parameters from query string | Community
Skip to main content
Level 2
December 30, 2024
Solved

Parse parameters from query string

  • December 30, 2024
  • 2 replies
  • 1790 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by TamirBe

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.


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. 

2 replies

SanfordWhiteman
Level 10
December 30, 2024

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

Jo_Pitts1
Community Advisor
Community Advisor
December 31, 2024

@tamirbe , 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
December 31, 2024

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.

TamirBeAuthor
Level 2
January 6, 2025

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?