Import a NetSuite custom object into the SDF project using an explicit object type and id, and store it under the matching Objects/{type}/ folder.
Import a NetSuite custom object into the SDF project using the exact object type provided by the user, and store the imported XML in the matching object-type folder.
| Parameter | Required | Description |
|---|---|---|
id | ✅ | NetSuite object script ID or internal object ID to import |
type | ✅ | SDF object type to import; trust this value first |
Examples:
id=customscript_ctc_vcdeb_proc_orderstatus type=SCHEDULEDSCRIPTid=customsearch_ctc_vc_dh_itemrequest_2 type=SAVEDSEARCHid=customrecord_my_config type=CUSTOMRECORDTYPEAlways import to:
src/Objects/<type>/
Examples:
type=SCHEDULEDSCRIPT → src/Objects/SCHEDULEDSCRIPT/type=SAVEDSEARCH → src/Objects/SAVEDSEARCH/type=CUSTOMRECORDTYPE → src/Objects/CUSTOMRECORDTYPE/Do not store imported objects directly under src/Objects/ unless explicitly requested.
Do not probe for alternate object types.
Use the exact type supplied by the user:
suitecloud object:import --scriptid <id> --type <TYPE> --destinationfolder /Objects/<TYPE>
If the import returns Record does not exist or Invalid Record Type, stop and ask the user to confirm the type.
Create the destination folder before import if needed:
mkdir -p src/Objects/<TYPE>
Run:
suitecloud object:import \
--scriptid <id> \
--type <TYPE> \
--destinationfolder /Objects/<TYPE>
Expected result:
src/Objects/<TYPE>/customscript_foo.xmlConfirm:
src/Objects/<TYPE>/ls src/Objects/<TYPE>/
# Input
id=customscript_ctc_vcdeb_proc_orderstatus
type=SCHEDULEDSCRIPT
# Create destination folder
mkdir -p src/Objects/SCHEDULEDSCRIPT
# Import object
suitecloud object:import \
--scriptid customscript_ctc_vcdeb_proc_orderstatus \
--type SCHEDULEDSCRIPT \
--destinationfolder /Objects/SCHEDULEDSCRIPT
Result:
src/Objects/SCHEDULEDSCRIPT/customscript_ctc_vcdeb_proc_orderstatus.xml
| Issue | Solution |
|---|---|
Record does not exist | The provided type is likely wrong; ask the user to confirm it |
Invalid Record Type | The provided type is not supported by SDF or mismatched for the object |
| File imported to wrong folder | Re-run with --destinationfolder /Objects/<TYPE> |
| Import created file refs/warnings | That is object-specific; this skill only imports the object into the correct folder |
typeid and typesrc/Objects/<TYPE>/Related: vc-sdf-importscript