More about NetSuite SDF manifest.xml and deploy.xml
Sample for manifest.xml
<manifest projecttype="ACCOUNTCUSTOMIZATION">
<projectname>Business Process Automation</projectname>
<frameworkversion>1.0</frameworkversion>
<dependencies>
<features>
<feature required="false">CREATESUITEBUNDLES</feature>
<feature required="true">SERVERSIDESCRIPTING</feature>
<feature required="false">ADVRECEIVING</feature>
<feature required="false">ASSEMBLIES</feature>
<feature required="false">INVENTORY</feature>
<feature required="false">PAYABLES</feature>
<feature required="false">RECEIVABLES</feature>
<feature required="false">CUSTOMTRANSACTIONS</feature>
<feature required="false">MULTILOCINVT</feature>
<feature required="false">OPPORTUNITIES</feature>
<feature required="false">EXPREPORTS</feature>
<feature required="false">ACCOUNTING</feature>
<feature required="false">CRM</feature>
<feature required="true">CUSTOMRECORDS</feature>
<feature required="false">MATRIXITEMS</feature>
<feature required="false">WEBSTORE</feature>
<feature required="false">WORKORDERS</feature>
</features>
<objects>
<object>customlist_backorder_status</object>
</objects>
<files>
<file>/SuiteScripts/ProjectName/Script1.js</file>
<file>/SuiteScripts/ProjectName/Script2.js</file>
</files>
</dependencies>
</manifest>
Sample for deply.xml
<deploy>
<configuration>
<path>~/AccountConfiguration/*</path>
</configuration>
<files>
<path>~/FileCabinet/ProjectName/*</path>
</files>
<objects>
<!-- <path>~/Objects/*</path> -->
<path>~/Objects/customrecord_record1.xml</path>
</objects>
</deploy>
Careful on the sequence of deploy, separate to multiple round will minimum the dependency issues.
See detail usage sample in previous article :
How to use NetSuite SDF CLI, CLI for Node.js on Mac, suitecloud command
-----DOWNLOAD--------------------------------------------------------------------------------
(mkdir SDF_Top)
cd SDF_Top
suitecloud project:create -i
- Created new project(SDF_Test1), it will create new folder under SDF_Top with project name: SDF_Test1.
cd SDF_Test1
suitecloud account:setup
Now this folder is the main project folder
suitecloud object:import -i
? Do you want to import all object types? Yes
? Do you want to enter a script ID to filter your list? Yes
? Enter the full or partial script ID. _track
? Select the objects you want to import (Press <space> to select, <a> to toggle all, <i> to invert selection)
-----UPLOAD--------------------------------------------------------------------------------
suitecloud account:setup
Create a new authentication ID (authID).
suitecloud project:adddependencies
suitecloud project:validate
The validation process has finished.
suitecloud project:deploy
Installation COMPLETE
Error handling
-----Validation failed--------------------------------------------------------------------------------
An error occurred during custom object validation. (customscript_scriptinternalid)
Details: The file reference /SuiteScripts/Project_Name/ScriptFileName.js is missing in the project and also not included in the dependencies list.
File: ~/Objects/customscript_ScriptFileName.xml
1. Upload Files(Deploy files)
2. Deploy Script Records
2.1 Update manifest.xml to enable the dependency for all files section(see Sample for manifest.xml above), MODIFY it to add depenency objects, sometime it's <objects> custom objects(transaction body fields, line item fields or custom entity fields, record types, etc), sometimes it's <files>, add detail referenced files to this section when validation message is error out.
2.2 Update deploy.xml to enable the specific objects section ONLY. It will helps isolate.
2.3 suitecloud project:deploy
本文来自博客园,作者:CarlZeng,转载请注明原文链接:https://www.cnblogs.com/backuper/p/sdf_more_about_manifest_and_deploy_configuration.html
需求沟通链接 扫客服加群:

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 25岁的心里话