object:update

Overwrites the SDF custom objects in your project with the matching ones from your account. For custom records, you can include custom instances too.

Syntax

            suitecloud object:update <-scriptid scriptID> 

          

Options

Option

Required / Optional

Description

--includeinstances

Optional

Includes instances. This is only valid for custom records.

-i or --interactive

Optional

Runs the command in interactive mode.

--scriptid

Required

Specifies the script ID of the SDF custom objects you want to overwrite. To specify multiple IDs, separate them with spaces.

-h or --help

Optional

Prints the help for this command.

Interactive Example

Here's a command that checks for updates to an SDF custom object in an account and overwrites it in the SuiteCloud project if it exists:

            suitecloud object:update -i 

          

Before you run the command, you'll be prompted with these questions:

            Do you want to enter a script ID to filter your search? > Yes No
Enter the full or partial script ID: cust
Select the objects you want to update from your account: ( ) advancedpdftemplate:custtmpl_myfile (*) advancedpdftemplate:custtmpl_2 ( ) centercategory:custcentercategory_myfile (*) centercategory:custcentercategory_2 (*) customrecord3
Do you want to include Custom Instances from the account? (*) Yes ( ) No
All the selected objects in the project will be overwritten with the objects from the account. Do you want to continue? > Yes No 

          
            Do you want to enter a script ID to filter your search? > Yes No
Enter the full or partial script ID: cust
Select the objects you want to update from your account: ( ) advancedpdftemplate:custtmpl_myfile (*) advancedpdftemplate:custtmpl_2 ( ) centercategory:custcentercategory_myfile (*) centercategory:custcentercategory_2
All the selected objects in the project will be overwritten with the objects from the account. Do you want to continue? > Yes No 

          

Output Example

When you run the command, it produces an output that is similar to the following:

            The following custom records were updated with instances from the account to your project:
   - customrecord3
The following objects were updated from the account to your project:
   - advancedpdftemplate:custtmpl_2
   - centercategory:custcentercategory_2 

          
            The following objects were updated from the account to your project:
customrecord_test1 updated. 

          

Related Topics

General Notices