Predefined Calculation: Get Ward From CMS LLPG Data
This formula can be used to get the ward the property resides in from the local LLPG data.
The formula requires the import of local LLPG address data into your system. Please speak to Jadu Support if you are unsure if you have this data imported.
This formula has two settings, the URPN or Postcode value to use to search for the ward and the search method (UPRN or Postcode) that should match the type of data passed into to the first setting.
|string||Ward of the property|
|not-found||if no ward is found for the property|
Note: return values are case sensitive
If the search method is UPRN the formula wil call getLPIForUPRN and if the ward is set on the returned object it is returned.
If the search method is Postcode the formula wil call getAllLPIsForPostCode and if the ward is set on the returned object it is returned.
If the ward is not returned in step 1 or 2, not-found is returned.