+ Start a Discussion
nrrhcnrrhc 

Number of cases on asset record

I would like to create a field on the standard asset object that would be updated anytime a case, from the standard case object,  is created for that asset.  I just want to have a total number of cases for the asset during the warranty period, 3 years. 

 

I can get this through a areport/dashboard, but I would like to have a field on the asset page that shows this number. 

 

Any help would be greatly appreciated.

sandeep@Salesforcesandeep@Salesforce

You can write up a trigger which will update field on assest object.

nrrhcnrrhc

Thanks, I thought the only solution would be a trigger.  I have never created a trigger.  Is there some place I can go to learn about creating a trigger like this?

sandeep@Salesforcesandeep@Salesforce

Here is simplest way of writing a trigger please give me kudos if this was helpful for you.

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers.htm