Jump to content

Get Contact ID via Email Address


Recommended Posts

We are looking we replacing an embedded ZenDesk Log Request Widget for one of our divisions we are looking to move over to Hornbill. As part of this we are looking at the API to determine how to collect the necessary information required to call the LogRequest node. In the web application where we are trying to use the application we will have the email address of the user, so are trying to locate a api method to get the Contact ID of the external user (i.e. Contact) based on the email address.

The API library does not seem to provide a method other then GetList to be able to retrieve by searching, but this is marked as internal use only.

image.thumb.png.b249fd04aa2009d47b2fcc4452c76c65.png 

Any suggestions on what method we should be using?

Cheers

Martyn

Link to comment
Share on other sites

Hi @Martyn Houghton,

You could use the data::entityBrowseRecords2 API, pointing at the Contact entity in the com.hornbill.core application, for example:

<methodCall service="data" method="entityBrowseRecords2">
	<params>
		<application>com.hornbill.core</application>
		<entity>Contact</entity>
		<searchFilter>
			<column>h_email_1</column>
			<value>some.email@address.com</value>
			<matchType>exact</matchType>
		</searchFilter>
		<searchFilter>
			<column>h_contact_status</column>
			<value>0</value>
			<matchType>exact</matchType>
		</searchFilter>
	</params>
</methodCall>

Would return the contact wiith the defined email address in the h_email_1 column, with a status of 0 (active).

Cheers,

Steve

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...