You need to sign in to do that
Don't have an account?
ChristineVW
Can it be done? Activity Trigger needs to update an Asset field
I need a trigger to do the following:
When an Activity ("log a call") is created with a numeric value in one of my custom Activity fields, a numeric field needs to be updated on an Asset. The Activity getting created will be related to an Account, and in turn, the Account will have several related Assets.
The trigger needs to get a list of Assets that are related to the common Account and, based on the Asset type or name, the trigger should identify the one Asset that has a numeric field that needs to be updated.
I am having a hard time with this because while I can write a trigger to update information on the Account, how can I get the information about the related Assets so that I can update one of them? Do I need TWO triggers, one before insert on the Activity and one before update on an Account?
Thanks much.
When an Activity ("log a call") is created with a numeric value in one of my custom Activity fields, a numeric field needs to be updated on an Asset. The Activity getting created will be related to an Account, and in turn, the Account will have several related Assets.
The trigger needs to get a list of Assets that are related to the common Account and, based on the Asset type or name, the trigger should identify the one Asset that has a numeric field that needs to be updated.
I am having a hard time with this because while I can write a trigger to update information on the Account, how can I get the information about the related Assets so that I can update one of them? Do I need TWO triggers, one before insert on the Activity and one before update on an Account?
Thanks much.
Message Edited by TehNrd on 05-13-2008 03:43 PM