# Dynamically query Contacts on LP for additional fields

**URL:** <https://community.hubspot.com/t/dynamically-query-contacts-on-lp-for-additional-fields/68643>\
**Category:** Blog, Website & Page Publishing\
**Tags:** landing-pages\
**Created:** [November 4, 2022, 10:57pm UTC](https://community.hubspot.com/t/dynamically-query-contacts-on-lp-for-additional-fields/68643 "2022-11-04T22:57:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OWolf](https://avatars.discourse-cdn.com/v4/letter/o/bbce88/32.png) [@OWolf](https://community.hubspot.com/u/OWolf)\
**Post date:** [November 4, 2022, 10:57pm UTC](https://community.hubspot.com/t/dynamically-query-contacts-on-lp-for-additional-fields/68643/1 "2022-11-04T22:57:27Z")

</div>

I have a landing page and I’m passing in the URL a unique ID for a contact. It’s a custom field called EID to give a contact an Evangelist ID.

I want to customize the landing page by using that EID to look up that Hubspot Contact and then return the First Name and Last Name so I can customize the landing page.

So it’ll say something like “So glad you landed here thanks to your Evangelist [first name] [last name]…”, and those two fields are looked up in the Contacts by that EID.

I’m new to HUBL but I see the crm\_object that can search Contacts. How would I write that function and how do I attach it to execute on the landing page?

Thanks in advance.

O

---

<div class="post-metadata">

**Author:** ![Olivia\_Hatchi](https://avatars.discourse-cdn.com/v4/letter/o/74df32/32.png) [@Olivia\_Hatchi](https://community.hubspot.com/u/Olivia_Hatchi)\
**Post date:** [November 7, 2022, 11:09am UTC](https://community.hubspot.com/t/dynamically-query-contacts-on-lp-for-additional-fields/68643/2 "2022-11-07T11:09:13Z")

</div>

Hi @OWolf. This is a great question. i’m not sure HS landing pages have time to look up contacts upon page load but Id like to tag my colleague @PMcConnell to see if he can provide some additional insights.
