New answers tagged


You can't achieve this in SOQL, which doesn't allow comparison of one field to another. You can only compare fields with a constant expression. What you can do is create a formula field on the PricebookEntry whose value is equal to the outcome of that comparison: CurrencyIsoCode = Product2.CurrencyIsoCode Then, you can reference that field in your query: ...

Top 50 recent answers are included