You need to sign in to do that
Don't have an account?
Reporting from two tables - help!
We're a couple of developers who are very new to the Salesforce ecosystem but understand relational database design very well. We're having some difficulty creating a particular report. Here's the scenario:
Tables Involved:
Functionality Requirements:
Thanks for your time. :)
Tables Involved:
- Account
- Donations
- Ticketable Events
- Orders
- Order Line Items
Functionality Requirements:
- User enters a date range
- User selects an event from Ticketable Events drop down
- Users runs report (or presses button) and the following is displayed:
- List of accounts
- Whether or not they purchased the selected Ticketable Event (based on the existence of an Order Line Item with keys from both Accounts and Ticketable Event)
- Aggregated amount of Donations (if any) made by each Account within the selected date range
- User is given the ability to export the list as a CSV with additional account information such as email address, etc. If this information needs to be in the list presented, that's fine.
Thanks for your time. :)
Can you please share the relationships among these tables as well.
Regards,
Swayam Arora
Sure! Here's a quick breakdown.
Accounts -< Donations
Accounts -< Orders
Ticketable Events -< Order Line Items
Orders -< Order Line Items
In one Order, it is possible to have Order Line Items for multiple Ticketable Events. A single Order Line Item can only be attached to one Ticketable Event. I really appreciate the response, let me know if you need any more details.