How to control total amount of current year paid orders in Shopify Flow?

How to control total amount of current year paid orders in Shopify Flow?

juceisk
Shopify Partner
19 0 2

Hello everyone,

I am new to shopify programming and I have a problem related to the shopify flow app, I'm trying to create a condition that allows me to control the total amount of paid orders but only the orders of the current year. is this possible? something like: order.created_at | date: "%Y" = 'now' | date: "%Y"

If anyone knows anything about it I would appreciate your help.

Replies 2 (2)

paul_n
Shopify Staff
1339 151 310

You currently cannot use flow to get all orders in a given time-frame. Flow is event-based so operates on a single order. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
CarmineT
Shopify Partner
88 2 28

I take the chance here, which is the correct condition to add to a order transaction object to check if an order amount is > X ?

 

P.S I have found even to check which order have free shipping like:

 

Order.totalShippingPriceSet.shopMoney.amount
 
 
But I can't find how to figure out to check the total amount paid for an order(assuming customer paid with card or other payment that isn't manual).
 
P.S I think I have found, is this?
 
order.totalPriceSet.shopMoney.amount