Solved

ETM - Get Building using Address Line1

  • 10 March 2023
  • 4 replies
  • 92 views

Userlevel 2
Badge +7

We have an ETM Channel where we want to fetch a n existing Building in Database using “Address1”.

Basically, the details that we can use to fetch Building Short Code are:

  1. Address 1
  2. Postal Code

We don’t see any lookup filter for Address1. Is there any work around? 

icon

Best answer by Paul McCulloch 16 March 2023, 11:46

View original

4 replies

Userlevel 4
Badge +12

I don't see this in ETM 1.5, but it does seem to be a new feature in ETM 1.6.

Userlevel 2
Badge +9

This is a bug, fixed in ETM 1.6 - “Query Parameters that are not fields on the target REST resource are now available to select as Search Criteria.”

Userlevel 2
Badge +7

Is there any workaround in version 11.5. We are upgrading to 11.6 later this year and till that time we need a solution.

Userlevel 2
Badge +9

You can fetch a list of possible Building’s into a variable, then loop through that list for the one that matches. Postcode is a supported criteria in 1.5 - so we can use that to limit the list of possible buidlings:

I haven’t tested this - so there may be syntax errors , but the concept will work. 

You don’t need to do the looping in a separate variable. You could do it directly in another field. For example here’s how the default location for the matching building could be specified:

This avoids the need to do any other assyst searches (other than the buildings for a post code) - so should be fast & efficient.

Reply