You need to sign in to do that
Don't have an account?
Anas Alamour
trigger to populate custom fields
I have a custom object and there are three required fields in this custom object ( Country , State, City) . this coustom object has a lookup relation with Contact object. my requirement is , when the staff create a new record for a client and the client has an existing contact file in the system , we need the system populate these fields from the Conatct object . any one help me to write this trigger. Thanks.
>> https://developer.salesforce.com/forums/?id=906F00000008zdWIAQ
As mentioned in the above forum thread you can try this trigger:
Fetch the necessary fields that need to be assigned using soql query and assign the values to each record in the loop.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
All Answers
>> https://developer.salesforce.com/forums/?id=906F00000008zdWIAQ
As mentioned in the above forum thread you can try this trigger:
Fetch the necessary fields that need to be assigned using soql query and assign the values to each record in the loop.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.