CMS Content

CMS content enables you to create things such as text and images for your website.

For help working with this record in the UI, see Site Management Tools.

The internal ID for this record is cmscontent.

See the SuiteScript Records Browser for all internal IDs associated with this record.

Note:

For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.

For information about scripting with this record in SuiteScript, see the following:

Supported Script Types

The CMS content record is scriptable in server SuiteScript only.

Supported Functions

The CMS content record is partially scriptable. It can be created, updated, and searched using SuiteScript. It cannot be copied, attached, or transformed.

Usage Notes

You must enable the Site Management Tools feature on the Web Presence subtab at Setup > Company > Enable Features to be able to script with this record.

Script Sample

The following sample code snippet creates a script that will search for a CMS content record.

          function searchCmsContentRecords(siteId){
    var mySearch = search.create({
        type: search.Type.CMS_CONTENT,
        filters: [{
            name: 'site',
            operator: search.Operator.IS,
            values: 'siteId'
        }],
        columns: [{
            name: 'name'
        }, {
            name: 'site'
        }, {
            name: 'cmscontenttype'
        }],
    });
    mySearch.run().each(function(result){
        var name = result.getValue({
            name: 'name'
        });
        var label = results.getValue({
            name: 'site'
        });
        var customRecordId = results.getValue({
            name: 'cmscontenttypre'
        });
        return true;
    });
} 

        

Related Topics

Site Management Tools
Working with the SuiteScript Records Browser
SuiteCloud Supported Records
Website
Commerce Category
Website Setup
CMS Content Type
CMS Page

General Notices