I am not that familiar with table level scripts and I was hoping I could get some direction on which way to tackle this.
The situation is, I am adding a postinsertrecord script to the Lead entity, where a communication is created for the assigned user for a new lead in the system.
There are checkboxes which are checked for each item of interest in the New Lead and these I intend to collect into an array displaying either a name value or the caption value. New checkboxes will be added in the future as needed for each item of interest.
My query is:
Can I collect the checkboxes and push them into an array object and assign all names to the lead communication field comm_subject through the table level script by accessing the array object?
Or, is this better in the custom content (or js script file) and then referenced in the table level script via a hidden field for assigning to the lead communication comm_subject field?
Or, do I need to create a case statement in the table level script to reference each checkbox?
Thanks.
Regards,
Penny Vaskess