You need to sign in to do that
Don't have an account?
Trigger Help
Hello, We just rolled out Salesforce, so my team is learning the system.
We have a custom object that lists multiple records connected to the Account object. I need a trigger that updates a specific field on the Account object when certain criteria is met for a record on the child object.
So.....example
Object: Account
Custom field: Favorite ice cream
Child object: List of favorite foods
custom fields: type of food, flavor, active
If type of food = ice cream and active = TRUE, then account.favorite_ice_cream = flavor
Hope I explained this right.......Any help would be appreciated.
Thanks in advance.
Here is your trigger
I hope it expalins you
I will give that a try.
Here is some more information:
If List_of_favorite_Foods.Active__C = TRUE and List_of_favorite_Foods.Type_of_food__c = 'Ice Cream' then copy the value in List_of_favorite_Foods.flavor_c to account.Favorite_flavor_of_icecream__c
will wait for your results, please let me know if any issues.
Almost got it.....how do I say:
If List_of_favorite_Foods.Active__C = TRUE and List_of_favorite_Foods.Type_of_food__c = 'Ice Cream'