Hi Audelia Zeitoun,
we can write the xpath in both conditions as you mentioned, you retrieve the same data by using any query.
But In Advance learning, we get to know that for xpath optimization we'll write this as "Current user will be compared to the association" instead of comparing to the id of the account entity.
So for xpath optimization, we go for "[OrderManagement.Customer_Account='[%CurrentUser%]']" in your case.
Regards,
Bhargav Ram Singh Bondili
Hi Audelia,
The only difference between both is that if you need something specific in any case to use the ID you can reach to it, otherwise in terms of performance it is recommended to use only the association like this [OrderManagement.Customer_Account='[%CurrentUser%]'] in the mentioned case to guarantee the best performance
Best of luck!