Skip to main content
1-Visitor
Jun 20, 2016 11:30 AM UTC
Question

If multiple Trigger files (java scripts), how are Parameters set for each?

I am guessing that it is not possible but....

I have a trigger and would like to have more than one file/script. The parameters tab becomes disabled. Is there a way to have different parameters for different scripts for a trigger? See attached.

    4 replies

    16-Pearl
    Jun 20, 2016 11:58 AM UTC

    You are correct, this is not possible. A trigger can only run one script.

    You have to set up one trigger per script, or combine the scripts into one.

    Translate
    tmiller-31-VisitorAuthor
    1-Visitor
    Jun 23, 2016 6:01 PM UTC

    Straighten me out. The documentation seems to suggest otherwise. See attached that describes multiple files. When multiple files are listed, the parameters tab becomes disabled. See second screenshot.

    PTC_trigger_Files.JPG

    ptc_trigg.JPG

    Translate
    16-Pearl
    Jun 23, 2016 6:32 PM UTC

    Interesting (that it's documented and someone read it ). I tested configuring two scripts with parameters in common, but as you noticed the parameters tab gets greyed out immediately.

    So it does seem like you can run multiple scripts, but without parameters. I guess it might work if you love to and can hardcode everything. I don't see the value in that, though.

    Translate
    5-Regular Member
    Jun 27, 2016 7:53 PM UTC

    Hi Ty,

    You may want to open a Support case, to find out particulars for this scenario.  I suspect you are right, and it's a scenario I have personally not seen, until I saw you asked about it here.  We do allow for the multiple script files to be defined and called, for a trigger, but don't allow parms to be specified in that scenario.  Perhaps there is a trigger design issue, where this is intentional, but I could not find info off-hand if so.

    It will probably need a Support case opened for investigation.

    Translate