Objective: I’d like to use a single table within a single page include that,
- Returns the opportunities for a given account when passed an account Id
- Returns the opportunities for a given contact when passed a contact Id (via OpportunityContactRole)
- Account model
- Condition: Id = AccountId URL param (novaluebehavior=“noquery")
- Condition: Id = ContactId URL param (novaluebehavior=“noquery")
- Condition logic: 1 OR 2
- Condition 1: AccountId = Id from the Account model (novaluebehavior=“deactivate")
- Condition 2: Id is in the set of OpportunityId values from the OpportunityContactRoles model (novaluebehavior=“deactivate")
Changing the "novaluebehavior” of the conditions on the Opportunity model from “deactivate” to “noquery” doesn’t work either because the query gets aborted if one of the first two models doesn’t have rows, which will always be the case.
XML: