zoukankan      html  css  js  c++  java
  • More about 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

     


    纠正错误,欢迎探讨:
    打开微信-发现-扫一扫
  • 相关阅读:
    node设置res.cookie跨域问题解决
    Rails常用插件
    什么是编程基础
    【数学之美】抽屉原理
    时分秒针重合问题
    如何理解【业务逻辑】
    【转】有关环境变量的若干问题?
    关于指针类型转化后在printf输出的问题
    rand * () 之间相互生成总结
    4.14做一个新浪微博的小东东
  • 原文地址:https://www.cnblogs.com/backuper/p/sdf_more_about_manifest_and_deploy_configuration.html
Copyright © 2011-2022 走看看