Ben Goligowski
01/10/2020, 8:41 PMCASE WHEN {transaction.type} = 'Sales Order' THEN ROUND({today} - (MAX({transaction.trandate})KEEP(DENSE_RANK LAST ORDER BY {transaction.trandate})) END
. I was trying this in search to see if i could get it to work first before moving to workflow. i know it can be scripted, but i was starting with workflow for maintainability in organization. this isn't complete yet either, essentially if the most recent transaction is within 30 days, then set field value to "super active" else if 31-60 then set to "active" else 61-90 then "passive"... etc. or am i better off just scripting this? thanks!battk
01/10/2020, 8:44 PMDate of Last Order
or Date of Last Sale
filterBen Goligowski
01/10/2020, 8:45 PMBen Goligowski
01/10/2020, 8:46 PMcase when sales order then date of last sale end
? I don't know if that will work... i can try it. or even without the case formula i suppose is what you're getting atbattk
01/10/2020, 8:49 PMbattk
01/10/2020, 8:49 PMbattk
01/10/2020, 8:49 PMBen Goligowski
01/10/2020, 8:57 PMBen Goligowski
01/10/2020, 8:59 PM