Hi Wilkius,
To get the last two orders, you should use Sort data by “Created at” in Descending order. Sorting in descending order ensures that the most recent orders are at the top of the list. Once sorted, you can then retrieve the first two orders from this sorted list.
Here is an example of orders being sorted by “Created at” in Descending order and Ascending order in the Shopify dashboard
Here’s a screenshot that explains the properties “Created at” and “Processed at”
Reference: https://shopify.dev/docs/api/admin-rest/2024-07/resources/order#resource-object


