You need to sign in to do that
Don't have an account?

Trigger to update record name
I have a Subgrantee object, and a Subgrantee Profile object, with a master-child relation ship (Subgrantee = master, Subgrantee Profile=child). I want to write a trigger so that:
- when the Name field in Subgrantee is updated
- The Subgrantee Profile name is also update (it's not the same, you have to append something to it)
Thanks
- when the Name field in Subgrantee is updated
- The Subgrantee Profile name is also update (it's not the same, you have to append something to it)
Thanks
All Answers
I'm relatively new to trigger, and couldn't get the code above to work. Here are the API names for your reference:
Subgrantee is actually Account , and the name is just Name
Subgrantee Profile is Subgrantee_Profile__c, and the name is Name
Subgrantee Profile has a lookup field to lookup Account
I want to write to trigger so that whenever the Name of the Account is changed, then the Name of the Subgrantee Profile is also changed.
Thanks,