Im doing a GET request to a custom entity.
That entity has a relationship many to many with other custom entity
The problem: I don't retrieve the info with the links with that relationship
The details:
Entity I made the GET: WooProductCategory
Entity related: WooProduct
Linking Field wooProductsIds.
I do the GET with the following URL
URL: https://boxspace.essenzial.es/api/v1...89d894b7af3088
I have ensured that that record really has a relationship with two WooProduct records
The call to the API provides a "200" status code answer and I retrieve the following JSON:
{
"id":"64189d894b7af3088",
"name":"135",
"deleted":false,
"description":null,
"createdAt":"2023-03-20 17:53:13",
"modifiedAt":"2023-03-24 20:15:20",
"count":9,
"display":"default",
"menuOrder ":null,
"parent":0,
"slug":"gxc-guarda-por-cajas",
"versionIT":null,
"nombre":"GXC - GUARDA POR CAJAS",
"borrado":"Activo",
"createdById":"628967ae3 9dc7f5e7",
"createdByName":"make_con_key",
"modified ById":"5ba4940d1778e47b2",
"modifiedByName":"Erge Seanle",
"assignedUserId":"5f71c1103d3a88c43",
"ass ignedUserName":"Bot espoCRM",
"teamsIds":["5ce19fe2dc9f3d2ec"],
"teamsNames":{"5ce19fe2dc9f3d2ec":"Cobranzas"}
}
But in the info I'm missing the linking field wooProductsIds
Cant see what I have wrongly done. Any idea?
PD. I have tried to use the select clause to "force" the retrieval, but with no success.
That entity has a relationship many to many with other custom entity
The problem: I don't retrieve the info with the links with that relationship
The details:
Entity I made the GET: WooProductCategory
Entity related: WooProduct
Linking Field wooProductsIds.
I do the GET with the following URL
URL: https://boxspace.essenzial.es/api/v1...89d894b7af3088
I have ensured that that record really has a relationship with two WooProduct records
The call to the API provides a "200" status code answer and I retrieve the following JSON:
{
"id":"64189d894b7af3088",
"name":"135",
"deleted":false,
"description":null,
"createdAt":"2023-03-20 17:53:13",
"modifiedAt":"2023-03-24 20:15:20",
"count":9,
"display":"default",
"menuOrder ":null,
"parent":0,
"slug":"gxc-guarda-por-cajas",
"versionIT":null,
"nombre":"GXC - GUARDA POR CAJAS",
"borrado":"Activo",
"createdById":"628967ae3 9dc7f5e7",
"createdByName":"make_con_key",
"modified ById":"5ba4940d1778e47b2",
"modifiedByName":"Erge Seanle",
"assignedUserId":"5f71c1103d3a88c43",
"ass ignedUserName":"Bot espoCRM",
"teamsIds":["5ce19fe2dc9f3d2ec"],
"teamsNames":{"5ce19fe2dc9f3d2ec":"Cobranzas"}
}
But in the info I'm missing the linking field wooProductsIds
Cant see what I have wrongly done. Any idea?
PD. I have tried to use the select clause to "force" the retrieval, but with no success.
Comment