I’m trying to retrieve nested field values from a Frappe API endpoint in a single request.
When I call:
/api/resource/Evenement?fields=[“qualification.nom”, “status.nom”]&limit=10&as_dict=true
I only get:
{
“data”: [
{“nom”: “Draft”},
{“nom”: “Draft”},
{“nom”: “Draft”}
]
}
It seems like it’s returning the nom field, but not indicating whether it’s from qualification or status, and the nested fields don’t appear to be resolved properly. It looks like only the top-level fields are returned correctly.
What I’m trying to achieve:
Get the values of qualification.nom and status.nom for each Evenement in one request.
Questions:
Is there a way to get the values of linked documents' fields (like qualification.nom and status.nom) directly from the main /api/resource/Evenement endpoint?
If not, what's the recommended way to get those values efficiently without doing a separate request for each document?
Any help appreciated!