2 Replies Latest reply on Nov 30, 2012 11:12 AM by rbogdanoff

    When printing found set of records from a script, how to print certain records to different layouts?

    rbogdanoff

      I have a script that finds a set of records, goes to a layout and prints the records. I now need to print those records to one of several versions of the original layout based on the contents of a field. I've written a script that uses PatternCount() to test the field to see which layout to use. I've put a script trigger in each layout to run this script onRecordLoad, and it works perfectly when I browse the found set of records. But when I run my script to print the found set of records the script doesn't trigger and the records all print to one layout. Help.