The parameters to customize the query. This includes:
doctype: The document type from which to retrieve the value.fieldname: The name of the field whose value is to be retrieved.filters: Optional filter conditions to apply to the query.as_dict: Optional flag to specify the format of the results (true or false).debug: Optional flag to enable debugging.parent: Optional parent document identifier.A promise that resolves to the value of the specified field as a string or number.
Retrieves the value of a specific field from a document based on the provided parameters.
This function performs an asynchronous request to the server to get the value of a specific field from a document of the specified
doctype. It supports parameters for filtering the documents, specifying a parent document, and enabling debugging. The function returns the value of the specified field as a string or number.Example
Example
Example
Example
Throws
Throws an error if the request fails or if there is an issue processing the parameters.