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

      A Week In The Life Of An AI-Augmented Designer

      August 22, 2025

      This week in AI updates: Gemini Code Assist Agent Mode, GitHub’s Agents panel, and more (August 22, 2025)

      August 22, 2025

      Microsoft adds Copilot-powered debugging features for .NET in Visual Studio

      August 21, 2025

      Blackstone portfolio company R Systems Acquires Novigo Solutions, Strengthening its Product Engineering and Full-Stack Agentic-AI Capabilities

      August 21, 2025

      I found the ultimate MacBook Air alternative for Windows users – and it’s priced well

      August 23, 2025

      Outdated IT help desks are holding businesses back – but there is a solution

      August 23, 2025

      Android’s latest update can force apps into dark mode – how to see it now

      August 23, 2025

      I tried the Google Pixel Watch 4 – and these key features made it feel indispensable

      August 23, 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

      Building Cross-Platform Alerts with Laravel’s Notification Framework

      August 23, 2025
      Recent

      Building Cross-Platform Alerts with Laravel’s Notification Framework

      August 23, 2025

      Add Notes Functionality to Eloquent Models With the Notable Package

      August 23, 2025

      How to install OpenPlatform — IoT platform

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

      Basics of Digital Forensics

      August 22, 2025
      Recent

      Basics of Digital Forensics

      August 22, 2025

      Top Linux Server Automation Tools: Simplifying System Administration

      August 22, 2025

      Rising from the Ashes: How AlmaLinux and Rocky Linux Redefined the Post-CentOS Landscape

      August 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

    Building Cross-Platform Alerts with Laravel’s Notification Framework

    August 23, 2025
    Development

    Add Notes Functionality to Eloquent Models With the Notable Package

    August 23, 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

    I wish this capable USB4 gaming dock could handle my favorite ROG Ally X, but it’s still a good USB hub

    News & Updates

    CVE-2025-7550 – Tenda FH1201 Buffer Overflow Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-46329 – Snowflake libsnowflakeclient Sensitive Information Logging

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-3850 – YXJ2018 SpringBoot-Vue-OnlineExam Remote Authentication Bypass Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    159 CVEs Exploited in The Wild in Q1 2025, 8.3% of Vulnerabilities Exploited Within 1-Day

    April 25, 2025

    159 CVEs Exploited in The Wild in Q1 2025, 8.3% of Vulnerabilities Exploited Within 1-Day

    In the first quarter of 2025, cybersecurity researchers documented an alarming surge in vulnerability exploitation, with 159 Common Vulnerabilities and Exposures (CVEs) being exploited in the wild.
    Th …
    Read more

    Published Date:
    Apr 25, 2025 (4 hours, 8 minutes ago)

    Vulnerabilities has been mentioned in this article.

    Mastering Java Caching: From Basics to Advanced Techniques

    August 11, 2025

    Why I’m patiently waiting for the Samsung Z Fold 8 next year (even though the foldable is already great)

    July 29, 2025

    CVE-2025-27891 – Samsung Exynos Modem NAS Packet Length Check Vulnerability

    May 14, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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