This topic contains 2 replies, has 0 voices, and was last updated by 3ksys 8 years, 9 months ago.

  • Author
    Posts
  • #2144 Score: 0

    3ksys
    • Contributions: 0
    • Level 1

    Hi,

    I am trying to speed up the following script trying to avoid using nlapiLoadRecord()…but I could not find a similar instruction to get more than 1 record. It would be great if nlapiSearchRecord return a list of records instead of objResult.

    for (i=0;iThis is a cached copy. Click here to see the original post.

  • #2145 Score: 0

    JohnCCole
    • Contributions: 0
    • Level 1

    You could do one search to get the invoice id’s and then a second search to get the invoice details and pass that to the template which would saved 10 units over load record but regardless at that volume a schedule script will likely never complete in one run. You would have to write to a temp file so you can append to what you have already processed. Also isn’t there a file size limit when you generate the final PDF of 5MB would 5000 invoices and all there details go over that limit.

  • #2146 Score: 0

    3ksys
    • Contributions: 0
    • Level 1

    Thanks John, I will try!

    Yes, I need to take into consideration the 5MB size limit…I forgot that!

    regards,

    Pablo

You must be logged in to reply to this topic.