This sample shows how to roll up opportunities by the parent account.
See How to run samples for information about how to run this sample.
The RollupRequest
message is intended to be used in a scenario where it contains data that is needed to create a roll up request.
In order to simulate the scenario described in What this sample does, the sample will do the following:
- Checks for the current version of the org.
- Creates sample account and opportunity records.
- The
QueryExpression
queries the opportunities by parent account. - The
RollupRequest
creates the roll up request.
Display an option to delete the records in Setup. The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.