I want to retreive value revenue from Object "B" based on input values year and servicetype fields which or common on both objects "A" & "B" and there is no relationship between both objects, and update revenue value on Object "A"eg: Year 2020, servicetype - gold which are common on both objects
Iterate Object A Trigger.old or Trigger.New Value-------> Store common field value in a list-----> Query on object B with common field in where clause with value stored in list.