Skip to content
Log in

Script Block Object Reference

On this page

Overview

Script Blocks contain JavaScript code that will be included on your web store.

Property Value
API Name s_c__Script_Block__c
Label Script Block
Plural Label Script Blocks
Type Custom Object

Fields

Field Label API Name Type Required Description
Active s_c__Active__c Checkbox No Defines whether the Script Block is active. Only active Script Blocks will be included on the website.
Channels s_c__Channels__c MultiselectPicklist No The channels this script block applies to (e.g. web, pos).
Content s_c__Content__c LongTextArea(131072) No The JavaScript code of the Script Block, without any
Global s_c__Global__c Checkbox No Defines whether the Script Block is automatically included on the website.
Position s_c__Position__c Number(18,0) No This defines the display order of the Script Blocks on the website. Lower numbers appear first. Only applies then Global is checked.
Store s_c__Store_Id__c Lookup (s_c__Store__c) Yes The Store that the Script Block belongs to.
Script URL s_c__Url__c Url No The URL of an external Javascript file to be included. If a value is specified, any value in Content will be ignored.
StoreConnect External ID s_c__sC_Id__c Text(36) No StoreConnect External ID, do not modify in Salesforce

Relationships

Field Type Related Object Relationship Name
s_c__Store_Id__c Lookup s_c__Store__c Script_Blocks

Referenced by

These objects hold a lookup or master-detail relationship to Script Block (s_c__Script_Block__c). Where the referring record exists to join things together, Also links to shows what it connects this object to.

Object Field Type Relationship Name Also links to
s_c__Cookie__c s_c__Script_Block_Id__c Lookup Cookies s_c__Compliance_Group__c

Was this article helpful?

Was this article helpful?