Netsuite Suitescript可以修改文件柜中的文件吗? [英] Can Netsuite Suitescript modify a file in the file cabinet?

查看:98
本文介绍了Netsuite Suitescript可以修改文件柜中的文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的产品列表很大,需要为其生成一个静态文件,并且可以在我的网站上访问该文件.目前,我生成列表,并将其上传到文件柜.我希望使这一过程自动化.我想安排一个SuiteScript每晚运行,并生成此列表并更新文件柜中的文件.

I have a large product list and need to generate a static file of it, and have that file be accessible in my website. Currently, I generate the list, and upload it to the file cabinet. I wish to automate this process. I would like to schedule a SuiteScript to run each night and generate this list and update a file in the file cabinet.

可以做到吗?

谢谢

推荐答案

您可以使用SuiteScript自动执行此过程.您将使用nlapiLoadFile和nlapiSubmitFile调用来完成此操作.如果您的产品清单很大,则可能会遇到其他一些问题.您可能会达到管理极限,因此需要开发此脚本,以便它跟踪进度并适当地重新计划自身. SuiteScript搜索将仅返回前1000条记录.如果此文件中要包含1000个以上的项目,则可能需要在项目记录上使用一个标志来跟踪哪些项目需要导出.当前,使用SuiteScript加载或创建文件时,文件大小限制为5MB.

You can automate this process with SuiteScript. You would use the nlapiLoadFile and nlapiSubmitFile calls to accomplish it. If you have a large product list you are likely to encounter a few other issues. You are likely to hit governance limits and will need to develop this script so that it tracks progress and reschedules itself appropriately. SuiteScript searches will only return the first 1000 records. If you have more than 1000 items to include in this file, you will likely need to use a flag on the item record to track which items remain for export. There is currently a 5MB limit on the file size when loading or creating files using SuiteScript.

这篇关于Netsuite Suitescript可以修改文件柜中的文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆