Ender Polanco Rivasepolanco.dev·Apr 26, 2024"Function Body returning SQL Query" with multiple queries.Here are a couple of things to consider when creating a report using a Function Body that returns an SQL Query as the data source and using "IF" to decide which query will be executed. "ELSE" must be present. The query in the "ELSE" condition will ...116 readsApexAdd a thoughtful commentNo comments yetBe the first to start the conversation.