RE: How to validate a multi line Journal Entry via CSV import using SS2 User Event

Hello All, I am trying to validate a Journal entry that is imported through the CSV import Wizard using a User event script. The Script appears to run but when I try to validate each individual line, it is like it skips that section of my code.

I have  the “RUN SERVER SUITESCRIPT AND TRIGGER WORKFLOWS” checkbox  set to checked. In my Execution log I see the logs i have set but the section i have set for running on each line does not run . The file i import has 4 lines and i have a log at the end of the section to tell me that last line counted and it return a count of 1.

Does this mean I cannot run a for loop for that section to validate each line one by one?

Thank you ,

GeneralKenobi Rookie Asked on December 20, 2019 in SuiteScript.

Share the code

on December 20, 2019.
Add Comment
2 Answers

Per you suggestion i went to the UI and did a test and it was not working. I reviewed the code after the holidays and saw my error right away, I setup the for loop wrong which is why it was being skipped , once i corrected it it worked fine. Thanks for you r help!

Rookie Answered on December 26, 2019.

I have a similar requirement, appreciate if you can share the sample script

on June 10, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.