Lightning Component Static Google Map

  • 1
  • Question
  • Updated 3 years ago
  • Answered
I am using the google static map.  My path to the address fields are quite long and there are 2 many variables to test it.  If someone can get the field correctly defined to my zip code I can figure out the rest.

My zip code field name is "Zip_Code__c"
The model name is "Location_CR_Email_DNA"

So suspect it looks something like this:

{{$Model.Location_CR_Email_DNA.CR_Email_DNA__c.Contact_Record__r.CR_Member_DNA__r.Location__r.data.0.Zip_Code__c}}

Here is an image of the path:
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Here's my guess:

{{$Model.Location_CR_Email_DNA.data.0.Contact_Record__r.CR_Member_DNA__r.Location__r.Zip_Code__c}}
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb
Thank you.