Loading...
Loading...
Use when building or testing OData queries with dxs odata execute: incremental query development, verifying $select/$expand/$filter clauses, or diagnosing query errors against a Footprint API connection.
npx skill4agent add datex/skills odata-executiondxs odata execute$selectschema properties$select$selectdxs odata execute -c <id> -q 'Entity?$top=1&$select=Id,Field1,Field2'dxs odata execute -c <id> -q 'Entity?$top=1&$select=Id,Field1&$expand=Account($select=Id,Name),Status($select=Id,Name)'dxs odata execute -c <id> -q 'Entity?$top=1&$select=Id,Field1&$expand=Lines($select=Id,LineNumber;$expand=OrderLine($select=OrderId;$expand=Material($select=Id,Name)))'$top=1$filter$filter$expandEntity(0)0Entity?$top=1Entity(0)Entity(0)# First: validate structure
dxs odata execute -c <id> -q 'Entity?$top=1&$select=Id,Field1&$expand=Status($select=Id,Name)'
# Then: switch to key segment
dxs odata execute -c <id> -q 'Entity(0)?$select=Id,Field1&$expand=Status($select=Id,Name)'| Rule | Detail |
|---|---|
| Use during testing to avoid timeouts |
| Single quotes | Always use |
| Required on every expand clause |
| Nested option separator | Semicolons ( |
400 on | Field name is wrong — check |
| Composite keys | Check |
| Mistake | Fix |
|---|---|
| Always include |
Double quotes for | Use single quotes — shell expands |
Not using | Large queries timeout — always limit during development |
Testing with | 404 is expected — validate structure via |