Skip to main content

Function: getSoilAnalysis()

getSoilAnalysis(fdm, principal_id, a_id): Promise<getSoilAnalysisType>

Defined in: fdm-core/src/soil.ts:192

Retrieves the soil analysis record for a specified analysis.

This function validates that the requesting principal has the necessary read permissions for the soil analysis before querying for soil analysis data based on the id.

Parameters

fdm

any

The FDM instance providing the connection to the database. The instance can be created with createFdmServer.

principal_id

any

The unique ID of the principal requesting the soil analysis.

a_id

any

The identifier of the analysis.

Returns

Promise<getSoilAnalysisType>

The soil analysis record for the field

Throws

If an error occurs during permission verification or data retrieval.