The core of the answer is in the following forum post from 2019, the expression should be a bit different in the workflows, if someone struggling like me or just interested in knowing how it is done, let me know here so I put together a proper explanation within this thread.
But for now, hope the following screenshots give you a good start for the meanwhile.