You need to sign in to do that
Don't have an account?
Amit Visapurkar 5
Trigger for updating a text field when lookup field value changes
I have a lookup field in my object and a text field.
Whenever the value of the lookup field changes the text field should get updated and i am trying to write a trigger for the same.
Please help it's very urgent.
Whenever the value of the lookup field changes the text field should get updated and i am trying to write a trigger for the same.
Please help it's very urgent.
The trigger only apply for record ( or a set of records). So, I guess you have to browse the value for lookup field of that record and change the textfield value to corresponding.
Btw, why don't you use Process Builder? Don't need to write any apex code for this, if the requirement is only ask for change the text field value when lookup field value change.