You need to sign in to do that
Don't have an account?
Daniel K
concatenate values of a field and assign to other field
Hi,
I have Account(parent) object and custom(child) object C1.
I'm trying to concatenate all values of a text(tf1) field of C1 object and assign to a text custom(Acctf1) field in Account object.
Let's say..
Account Custom Object(tf1 values)
-------- -------------
Account1 cs1
cs2
cs3
cs4
Account2 cs5
cs6
cs7
Now, for Account1 value, Acctf1 field should have cs1:cs2:cs3:cs4
for Account2 value, Acctf1 field should have cs5:cs6:cs7
As I couldn't do it through configuration, can you suggest how to code it ?
Thanks.
I have Account(parent) object and custom(child) object C1.
I'm trying to concatenate all values of a text(tf1) field of C1 object and assign to a text custom(Acctf1) field in Account object.
Let's say..
Account Custom Object(tf1 values)
-------- -------------
Account1 cs1
cs2
cs3
cs4
Account2 cs5
cs6
cs7
Now, for Account1 value, Acctf1 field should have cs1:cs2:cs3:cs4
for Account2 value, Acctf1 field should have cs5:cs6:cs7
As I couldn't do it through configuration, can you suggest how to code it ?
Thanks.
In order to fulfill your requirement you need to create a trigger on your child object whose code will look like something below:
Please adjust the API name of the fields and let me know if you face any issue.
Thanks
Abhishek Bansal.