Set assignment field in interaction using triggers
I have added the "assignment" field to the form "ess.SD.open". But when the user add the interaction, "assignment" field remains empty.
I suppose I have to use a "Before Add" trigger in "incidents" table, but I don't know wich code I have to use.. Can someone help me?
More, where I can find some docs to learn which commands I can use in triggers? SM doc is very poor..
Thanks in advance,
Re: Set assignment field in interaction using triggers
There is no reason, at all, to use a trigger for this.
When you "added the assignment field" to the ess.SD.open format, how did you add it? In the incidents table (where the interaction is created, the assignment field is an array field, so you can't just use "assignment" as the input on a text object/com.fill. If you want them to populate the first position of the assigment array, the inout value of the field would need to be assignment,1.
However, why would you have an ESS user select the assignment group?
If you install the SM 9.30 help, there are a number of embedded PDF guides. The "Best Practices for Tailoring SM" document would be a good place to start.
IF you have not already taken any SM training, you really should if you want to tailor the system in any way.