We are trying to get the location details of a particular location using the location query by name. However, the API returns a null value on data even though this location already exists on the dashboard. Can you help us check on this? This is the request ID: 62296c8e410ac50ccec27b0d
Here is our query:
query getLocation {
location(name: "D2D-TL1") {
complexity
request_id
data {
id
legacy_id
name
warehouse_id
}
}
}
To achieve what you are asking for, you can use the following query:
query getLocation {
location(id: "id of the location ex: 5548973") {
complexity
request_id
data {
id
legacy_id
name
warehouse_id
}
}
}
I replicate the case on my test account, and it looks if I search for location name, I get null data.
But I tried with the location ID, and the response was successful.
Please let me know if this doesn’t solve your concern.
This is not really our use case. What we are trying to achieve is to qet the location ID by querying the location by name. When a new location is created on dashboard, we need to store that new location information on our internal DB including the location ID, but before we do that is we need to identify the location ID of the location first so we can’t use the get location by ID query. The current query that I provided above doesn’t work and it always returns a null value.
Hello @tomasfd , do you have any update about this issue?
I’ve just encountered the same issue that @Altair had: when trying to get the location_id of a bin by querying by their name, I just get null data.
If you have any update about this issue I would greatly appreciate it!
I’ll go ahead and bump this issue again. I’ll let you know when a fix has been pushed for this one.
Please let me know if you have any questions or concerns.