{"title":"Script Block Object Reference","slug":"script-block-object-reference","url":"https://support.storeconnect.com/articles/script-block-object-reference","url_markdown":"https://support.storeconnect.com/articles/script-block-object-reference.md","subtitle":null,"summary":"Script Blocks contain JavaScript code that will be included on your web store.","type":"Developer_Documentation","video_url":"","keywords":"salesforce, object reference, Script Block, s_c__Script_Block__c, api","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Overview\n\nScript Blocks contain JavaScript code that will be included on your web store.\n\n| Property | Value |\n|----------|-------|\n| **API Name** | `s_c__Script_Block__c` |\n| **Label** | Script Block |\n| **Plural Label** | Script Blocks |\n| **Type** | Custom Object |\n\n## Fields\n\n| Field Label | API Name | Type | Required | Description |\n|-------------|----------|------|----------|-------------|\n| Active | `s_c__Active__c` | Checkbox | No | Defines whether the Script Block is active. Only active Script Blocks will be included on the website. |\n| Channels | `s_c__Channels__c` | MultiselectPicklist | No | The channels this script block applies to (e.g. web, pos). |\n| Content | `s_c__Content__c` | LongTextArea(131072) | No | The JavaScript code of the Script Block, without any \u003cscript\u003e tags. |\n| Global | `s_c__Global__c` | Checkbox | No | Defines whether the Script Block is automatically included on the website. |\n| 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. |\n| Store | `s_c__Store_Id__c` | Lookup ([s_c__Store__c](store-object-reference)) | Yes | The Store that the Script Block belongs to. |\n| 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. |\n| StoreConnect External ID | `s_c__sC_Id__c` | Text(36) | No | StoreConnect External ID, do not modify in Salesforce |\n\n## Relationships\n\n| Field | Type | Related Object | Relationship Name |\n|-------|------|----------------|-------------------|\n| `s_c__Store_Id__c` | Lookup | [s_c__Store__c](store-object-reference) | Script_Blocks |\n\n## Referenced by\n\nThese 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.\n\n| Object | Field | Type | Relationship Name | Also links to |\n|--------|-------|------|-------------------|---------------|\n| [s_c__Cookie__c](cookie-object-reference) | `s_c__Script_Block_Id__c` | Lookup | Cookies | [s_c__Compliance_Group__c](compliance-group-object-reference) |"}