mjlongo Posted September 19, 2018 Share Posted September 19, 2018 Hello, I have a situation where the user might supply a file with say 100 records. Can I setup a rule or script whereby the system will stop reading records after say the 20th record? I do not want to have to manually remove records from the proved file. I want to ensure it never goes above whatever limit I end up setting it at. As a side note: If I set the Record Range on the input tab of the compose settings screen, does this setting remain in place for a fusion pro doc that is "collected" for a Marcom portal? Thanks! Quote Link to comment Share on other sites More sharing options...
ScottHillock Posted September 19, 2018 Share Posted September 19, 2018 I have not used Marcom, but to answer the first part of your question, this will work: var RecordLimit = 20; if (FusionPro.Composition.inputRecordNumber > RecordLimit){FusionPro.Composition.composeThisRecord = false;} Quote Link to comment Share on other sites More sharing options...
mjlongo Posted September 19, 2018 Author Share Posted September 19, 2018 Thanks! I'll give it a shot. Quote Link to comment Share on other sites More sharing options...
mjlongo Posted September 20, 2018 Author Share Posted September 20, 2018 BTW, does that script go in the OnJobStart or OnRecordStart? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.