Function: getFertilizerApplication()
getFertilizerApplication(
fdm
,principal_id
,p_app_id
):Promise
<null
|getFertilizerApplicationType
>
Defined in: fdm-core/src/fertilizer.ts:782
Retrieves a fertilizer application record by its unique identifier.
Checks if the principal has read permission before querying the database for the fertilizer application record, including associated catalogue details. Returns the record if found, or null otherwise.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
principal_id
any
The ID of the principal retrieving the application.
p_app_id
any
The unique ID of the fertilizer application record.
Returns
Promise
<null
| getFertilizerApplicationType
>
A Promise that resolves with the fertilizer application record, or null if not found.
Throws
Error if the retrieval process fails.