Discussions

Ask a Question
Back to all

Filtering work orders by Location Code

Hi,

We identified that, for our use case, Building maps to Location Code, and we were previously using that field to filter work orders. However, it now appears to have been removed from the API response under Custom Fields for work orders.

Could you clarify why this would typically happen? Is this a dynamic field that can be configured to appear or not appear in the API response, depending on client or user settings?

This field is critical for our filtering logic. If Location Code is no longer available in Custom Fields, we noticed that WorkZone.DisplayAs seems to follow a format like {{LocationCode}}-{{AppendingName}}.

Can you confirm whether this format is guaranteed in all cases, so that we can reliably split on - and use the first segment as the Location Code?

If not, please let us know what the recommended alternative field is for consistently identifying and filtering by Location Code.