object:update
Overwrites the SDF custom objects in the project with their matching objects imported from your account. In the case of custom records, custom instances can be included.
Syntax
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, enter the IDs separated by spaces. |
-h or --help |
Optional |
Prints the help for this command. |
Interactive Example
The following command 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 the command is executed, the following questions are prompted:
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 executed, the command produces 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.