Write a small Salesforce Trigger

This project was successfully completed by ForceDev for $110 USD in a day.

Get free quotes for a project like this
Project Budget
$30 - $250 USD
Completed In
1 day
Total Bids
Project Description


I want to create a roll-up summary field in my oppurtunities so I can add up the costs I have incurred on all the cases that have arisen that are associtated with a closed won oppurtunity.

I cannot create a roll up summary field unless cases are a child to oppurtunities.

So far i have been able to create a look up relationship between the two but that does not allow for a roll up summary field.


Cases are not supported by RUS fields.

We need to create a custom number field and make it Read Only. Then we would need to develop a trigger that would count all Cases related to the Account ID and populate the count into the number field, and add up all the case totals in to another readonly field that can be shown in Opportunities.

We need a small trigger script written to do this. Total the Case values attached to a particular account, then show the rolled up total in the opportunity/account tab.

Completed by:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online