Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          External Format

          External Format

          The generator currently supports data source contracts written by using the external format, also known as the old or manual format. Many of the oldest core data source contracts were created by using this format, and it’s still possible to create data source contracts by using this format in a text editor.

          Required Editions

          Available in: Enterprise, Performance, and Unlimited Editions
          Note
          Note To avoid manual migration of data sources, we recommend that you avoid using this format unless you don’t get the desired result by using standard modeled data source contracts. For example, modeled data source contracts don’t currently support CASEs.

          To define a new external data source, the value of the external attribute in the <DataSource> tag must be True. Older core data source contracts don’t contain this attribute. These element descriptions reflect the structure and attributes of the underlying XML.

          <Datasource objectClass="[BusinessObjectName]">
          <Database platform="SQLite">
          <Insert>
          <![CDATA[
          <JavaScript code for generating the "Insert" Statement>
          ]>
          </Insert>
          <Update>
          <![CDATA[
          <JavaScript code for generating the "Update" Statement>
          ]>
          </Update>
          <Load>
          <![CDATA[
          <JavaScript code for generating the "Load" Statement>
          ]>
          </Load>
          <Delete>
          <![CDATA[
          <JavaScript code for generating the "Delete" Statement>
          ]>
          </Delete>
          </Database>
          </Datasource>
          
          • Use the <Insert/> block to create entries.
          • Use the <Update/> block to modify entries.
          • Use the <Delete/> block to delete entries.
           
          Loading
          Salesforce Help | Article