Buy 3 Items Get Lowest Priced Item (1) Free

How do we configure the Pricing Rule such that the when the Customer buys 3 items, he/she gets the third item (lowest Priced) free of cost?
Or in other words, Buy 2 get 1 free (lowest MRP)
In Pricing Rule, you have to define the free of cost Item, without which you cannot configure a Pricing Rule

Has anyone configured such a case in ERPNext?

I don’t think this can be achieved with configuration but you may need some custom script to achieve this.

I thought so too, thanks for confirming