My Suitelet is reaching execution limit due to heavy print , with a schedule script triggered I can generate pdf how can I get it back to Suitelet ?

Answered

Test

Rookie Asked on December 10, 2021 in SuiteScript.
Add Comment
1 Answer(s)
Best answer

Is it possible to use a smaller batch size?  The user experience is poor when the user has to wait for an action longer than a few seconds.

 

You could have the scheduled script generate the pdf and put it into the file cabinet.  Then update the record with a link to it.

For ultimate automation, I would use a service like PrintNode to then print the pdf file directly to the printer (via API)  after it has been generated,  then there is no other user interaction with it.

Rookie Answered on December 15, 2021.

I managed to handle the job with the Suitelet only in a small batch size yes. Thank you for your valuable input

Alternatively, the idea was to have the link triggered after scheduled script stored the file in cabinet,

same behavior like printing from the suitelet only.
Any option to reach browser directly from schedule script ?

on December 16, 2021.

Not without poling with some custom javascript.  You could have the scheduled script send an API update in Slack or some other notification app like PushOver so you have a link back to the file or transaction with the custom field populated with the file link.  You are also hindered by the limitations of the browser, even with custom javascript you will have to deal with popup blockers since opening the new file through a script will trigger a popup blocker since it isn’t linked to a user action.  

on December 17, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor