Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      CodeSOD: A Unique Way to Primary Key

      July 22, 2025

      BrowserStack launches Figma plugin for detecting accessibility issues in design phase

      July 22, 2025

      Parasoft brings agentic AI to service virtualization in latest release

      July 22, 2025

      Node.js vs. Python for Backend: 7 Reasons C-Level Leaders Choose Node.js Talent

      July 21, 2025

      The best CRM software with email marketing in 2025: Expert tested and reviewed

      July 22, 2025

      This multi-port car charger can power 4 gadgets at once – and it’s surprisingly cheap

      July 22, 2025

      I’m a wearables editor and here are the 7 Pixel Watch 4 rumors I’m most curious about

      July 22, 2025

      8 ways I quickly leveled up my Linux skills – and you can too

      July 22, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025
      Recent

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025

      Zero Trust & Cybersecurity Mesh: Your Org’s Survival Guide

      July 22, 2025

      Execute Ping Commands and Get Back Structured Data in PHP

      July 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025
      Recent

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025

      “I don’t think I changed his mind” — NVIDIA CEO comments on H20 AI GPU sales resuming in China following a meeting with President Trump

      July 22, 2025

      Galaxy Z Fold 7 review: Six years later — Samsung finally cracks the foldable code

      July 22, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Implementation of Custom Tables in Optimizely Configured Commerce

    Implementation of Custom Tables in Optimizely Configured Commerce

    July 8, 2025

    In many B2B commerce implementations, the default features provided by Optimizely Configured Commerce may fall short, particularly when it comes to managing or storing custom data. This blog will outline how to create and work with custom database tables within the platform, ensuring flexibility without altering core system components.

    What Are Custom Tables?

    Custom tables are user-defined database tables used to hold additional information about products, customers, orders, or other business-specific data. They allow developers to expand the platform’s capabilities without interfering with the existing database schema, which supports better maintainability and easier upgrades.

    Why Create Custom Tables?

    Here are the key reasons to implement custom tables in Optimizely Configured Commerce:

    • Storing metadata or attributes that don’t naturally fit into existing system tables
    • Supporting business processes that require unique data structures
    • Keeping the core schema that clean while enabling platform customization

    Steps to Implement a Custom Table

    Creating a custom table involves adding a new table via a SQL script and configuring it to run automatically using the Optimizely bootstrapper.

    1. Set Up the Project Structure:
      Begin by creating a folder named DatabaseScript at the root of your Extension project.
      Db Structure
    2. Follow Naming Conventions:
      Use the following format for naming your SQL script files: YYYY.MM.DD.SS.DescriptiveName.sql
      • YYYY = year
      • MM = month
      • DD = day
      • SS = sequence number for that day
        This convention ensures scripts run in the correct order and version control is maintained.
    3. Mark Script as Embedded Resource:
      To ensure the bootstrapper can detect and execute your script, set its Build Action to Embedded Resource in the properties panel.
      Script Property

    Example: Creating a Custom Table for Product Data

    Let’s say you want to store extra product details. You could create a table called ProductExtensions using a script named 2025.06.03.01.Table_ProductExtension.sql. To proceed, this file should be added to the DatabaseScript folder and marked as an embedded resource with the following content:
    Script

    Table Structure

    Once you execute the script, the system creates a custom table named Extension.ProductExtension in the database, as shown below:

    Guidelines for Custom Table Design

    • All custom tables, views, and stored procedures must exist under the Extension schema.
    • You can modify and load data into other schemas, but DDL operations are restricted to the Extension schema.
    • Each custom table must include a primary key field named Id of type uniqueidentifier with a default of newsequentialid().
    • Include audit fields like CreatedOn, CreatedBy, ModifiedOn, and ModifiedBy, all non-nullable and set with proper defaults.
    • Add indexes on commonly queried fields like ErpNumber and Id.
    • You can define foreign key relationships to dbo schema tables, since the Extensions user has permission to reference them.

    Script Execution and Bootstrapper Behaviour

    When the application starts, the bootstrapper checks for new database scripts and runs them. It also logs each executed script in the DatabaseScript table. To re-execute a script, however, you must delete both the custom table and its entry in the DatabaseScript table. On the next application start, the system will execute the script again and relog it.

    Conclusion

    Custom tables in Optimizely Configured Commerce offer a powerful way to tailor the platform to your organization’s unique data and functionality needs, all without compromising the integrity of the core system

     

    Reference: Create custom tables with an entity and WebApi

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCISA Adds 3 Flaws to KEV Catalog, Impacting AMI MegaRAC, D-Link, Fortinet
    Next Article Keyboard Testing in Accessibility Testing

    Related Posts

    Development

    GPT-5 is Coming: Revolutionizing Software Testing

    July 22, 2025
    Development

    Win the Accessibility Game: Combining AI with Human Judgment

    July 22, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-20201 – Cisco IOS XE Software CLI Privilege Escalation Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    What I learned from Inspired

    Learning Resources

    CVE-2025-4723 – iSourcecode Placement Management System SQL Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-43488 – Poly Clariti Manager XSS Bypass

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CVE-2025-2880 – Yame Link In Bio WordPress Sensitive Information Exposure

    May 2, 2025

    CVE ID : CVE-2025-2880

    Published : May 2, 2025, 3:15 a.m. | 4 hours, 5 minutes ago

    Description : The Yame | Link In Bio plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 0.9.0 through the publicly accessible phpinfo.php script. This makes it possible for unauthenticated attackers to view potentially sensitive information contained in the exposed file.

    Severity: 5.3 | MEDIUM

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Unlock Automation Success: Power Automate Workshops at TechCon365 PWRCON

    May 14, 2025

    CVE-2025-53936 – WeGIA Reflected Cross-Site Scripting (XSS)

    July 16, 2025

    GoZen – minimalistic video editor

    July 11, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.