I assume you have an association User-Cart
You can retrieve, via association, the cart(s) the user has, if none are found, create one for them, otherwise use the one found.
Hi Muhammad Furqan,
I think you are having an entity named Cart. and having an association with User entity.
Then, use the microflow activity retrieve and using association retrieve the cart.
Check with the condition, Cart! = empty by using decision. if true continue, the flow.
if false, then create a new object of Cart with association of current user.
If you still didn't get it how to go further, then share the screenshots here to explain exact scenario.
here you can se my domain model + logic