The tenantId on a FieldVisit is automatically assigned from your authenticated session when the visit is created. It ensures that one organization's field visit records — including all the FieldMeasurement records linked to the visit — are not visible to other organizations in the system. For environmental consulting firms tracking multiple clients in Piper, tenantId is the critical boundary that keeps each client's site visit and water-level data confidential. You never set this field manually.
Technical section
Data model, API, and internals — visible to developers.
