I have a process on the product2 object which deletes a pricebook entry (via apex) if it meets a certain criteria. The process has been failing if there is an opportunity attached. How can I go about adding this into my process builder criteria? So I want to check if the product is current being used on an opportunity, and if it is, then move onto the next criteria node
You would need to either populate a custom field on Price Book Entry with a count of all Opportunities using that entry - probably using Apex, or include in Apex a check first to make sure there are no entries appearing.