How is a value set against a sub field like status id and status name below?
{
openOrders(limit: 10, tabName: "new") {
orderID
customerName
status{
id
name
}
}
}
How is a value set against a sub field like status id and status name below?
{
openOrders(limit: 10, tabName: "new") {
orderID
customerName
status{
id
name
}
}
}
Hey @topstop
Welcome to the Postman community!
Could you share which API this is from or the documentation?
Thanks Danny,
I wrote a conditional expression to filter out records from the openRecord query that do not have a status.id of 8,9,10,
entered into Tests as:
pm.test("Check status name", function () {
const responseData = pm.response.json();
const status = responseData.alertStatusID;
pm.expect([8, 9, 10].includes(status) ? status.name : "Order").to.exist;
});
Test Result is Pass
But It does not actually filter so openRecord query still returns all records
Where should this condition expression filter be placed?
API Documentation
Open Records:
Record Details:
Input: ids: [ID]!
Output: [Records]
Search Records by recordID, recordName:
regex (String!): This parameter accepts a regular expression (regex) string as input.
byOrder (Boolean!): true = recordID, false = recordName
Output: [Records] - record details
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.