How do you add multiple liquid variables to a link in Looker?

I’ve followed this link https://docs.looker.com/reference/field-params/link on how to add a link to a dimension. 


So I was following this formula: 
 

dimension: artist_name {

link: {

label: "Google"

url: "http://www.google.com/search?q={{ value }}"

icon_url: "http://google.com/favicon.ico"

}

}

BUT, I need two different values in that URL link. For example, I need to add Lead ID and Client ID to that URL. And it only seems to work when you add one value. 

Solved Solved
0 5 2,590
1 ACCEPTED SOLUTION

Yes, it should work.  Below is an example.

dimension: product_brand {
    type: string
    sql: ${TABLE}.product_brand ;;
    link: {
      label: "Google"
      url: "http://www.google.com/search?q={{ value | url_encode }} + {{ inventory_items.product_department._value | url_encode }}"
      icon_url: "http://google.com/favicon.ico"
    }

View solution in original post

5 REPLIES 5
Top Labels in this Space
Top Solution Authors