Bc Cds Page Generator logo

Bc Cds Page Generator

Community
fernandoartalf
bc-cds-page-generator

Automatically generate AL list page objects for CDS (Dataverse) tables with standard CRM integration patterns. Creates list pages with proper field layouts, CRM integration actions, coupling procedures, and initialization triggers. Use when user requests to create, generate, or build a list page for a CDS/Dataverse table, or mentions creating UI for Dataverse entities. Trigger phrases include "create page for CDS table", "generate list page for [entity]", "build Dataverse page", or when working with CDS integration tables that need user interfaces.

Overview

Publisherfernandoartalf
RepositoryAL-Copilot-Skills-Collection
Skill namebc-cds-page-generator
Stars
28
Forks
8
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by fernandoartalf on GitHub. Read the source before you install it.

Installation

Install the Bc Cds Page Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fernandoartalf/AL-Copilot-Skills-Collection/tree/main/skills/bc-cds-page-generator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fernandoartalf/AL-Copilot-Skills-Collection.git /tmp/AL-Copilot-Skills-Collection
mkdir -p .claude/skills
cp -r /tmp/AL-Copilot-Skills-Collection/skills/bc-cds-page-generator .claude/skills/bc-cds-page-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Bc Cds Page Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Bc Cds Page Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Bc Cds Page Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Business Central CDS Page Generator

Generates AL list page objects for CDS (Dataverse) tables with standard CRM integration patterns. Creates read-only list pages with coupling support, CreateFromCDS actions, and proper field visibility.

Prerequisites

  • CDS table exists (TableType = CDS) in src/Table/
  • Available page ID (use Object ID Ninja or manual allocation)
  • Understanding of which fields should be visible by default
  • Author prefix defined (e.g., "BCS", "ABC", "XYZ") for consistent object naming

Quick Reference

Naming conventions:

  • Page name: "[PREFIX] CDS [EntityName]" (plural) — replace [PREFIX] with author prefix (e.g., "BCS CDS Countries")
  • Page caption: 'Dataverse [EntityName]'
  • File name: [PREFIX]CDS[EntityName].Page.al — replace [PREFIX] (e.g., "BCSCDSCountries.Page.al")
  • Entity variable: CDS[Entity] (e.g., CDSCountry, CDSDepartment)

Note: The author's prefix in examples is "BCS". Replace with your own prefix throughout.

Standard properties:

  • PageType = List
  • Editable = false (CDS tables are read-only from BC)
  • RefreshOnActivate = true (refresh from Dataverse on page activation)
  • UsageCategory = Lists (makes page searchable)

Workflow

Step 1: Identify CDS Table and Prefix

Gather information:

  1. Author Prefix — your organization's prefix (e.g., "BCS", "ABC", "XYZ")
  2. CDS Table Name (e.g., "[PREFIX] CDS bcs_country")
  3. Entity Display Name (e.g., "Countries", "Departments")
  4. Primary Fields — which fields are most important (code, name, key identifiers)
  5. System Fields — standard fields that should be hidden (CreatedOn, ModifiedOn, statecode, statuscode, SystemId)

Step 2: Determine Page ID

Find next available page ID:

powershell
Get-ChildItem "src/Page/*.al" | 
  ForEach-Object { 
    $content = Get-Content $_.FullName -Raw
    if ($content -match 'page\s+(\d+)') { [int]$matches[1] }
  } | Sort-Object | Select-Object -Last 1

Next ID = Last ID + 1

Step 3: Generate Page Structure

Create the page file with:

  1. File path: src/Page/[PREFIX]CDS[EntityName].Page.al (e.g., BCSCDSCountries.Page.al)
  2. Page properties — use standard CDS list page properties
  3. Layout — organize fields by visibility priority (see references/field-layout.md)
  4. Actions — include CreateFromCDS action
  5. Triggers — add OnInit trigger
  6. Procedures — add SetCurrentlyCoupled[Entity] procedure

For complete code patterns and templates, read:

  • references/quick-start.md — quick start guide with workflows and troubleshooting
  • references/field-layout.md — field organization and visibility patterns
  • references/standard-components.md — actions, triggers, and procedures
  • references/examples.md — complete working examples

Step 4: Organize Fields

Field visibility rules:

  1. Visible (3-5 fields): Primary identifiers, names, key business fields
  2. Hidden (Visible = false): Technical fields, system fields, supplementary data

Standard field order:

  1. Primary identification fields
  2. Important business fields
  3. Additional business fields (hidden)
  4. System fields (all hidden): CreatedOn, ModifiedOn, statecode, statuscode, SystemId

Step 5: Add Standard Components

Required components:

  • CreateFromCDS action — creates BC records from selected Dataverse records
  • OnInit trigger — initializes CRM Integration Management
  • SetCurrentlyCoupled[Entity] procedure — tracks coupled record in lookup scenarios

See references/standard-components.md for complete implementations.

Step 6: Validate

  • Page name follows "[PREFIX] CDS [EntityName]" pattern with your author prefix
  • File name follows [PREFIX]CDS[EntityName].Page.al pattern
  • Caption is 'Dataverse [EntityName]'
  • SourceTable references correct CDS table
  • All field names match table definition (case-sensitive)
  • ToolTips are meaningful
  • CreateFromCDS action variable matches entity name
  • SetCurrentlyCoupled procedure parameter matches entity name
  • Page compiles without errors

Field Layout Principles

Primary fields (visible):

  • Code/Number fields
  • Name/Description fields
  • Key classification fields

Hidden fields:

  • GUIDs (except for debugging)
  • Audit timestamps (CreatedOn, ModifiedOn)
  • Status codes (statecode, statuscode)
  • SystemId

ToolTip format:

  • Start with "Specifies"
  • Be specific about what the field represents
  • End with period

Example: 'Specifies the two-letter ISO country code.'

Integration with Other Skills

SkillRelationship
bc-dataverse-entity-generatorGenerate CDS table first, then create page
bc-dataverse-mapping-generatorPage used in lookup procedures for coupling
bc-tooltip-managerEnhance tooltips after page generation
dataverse-schema-generatorReference schema docs for field selection

Common Patterns

Master Data Pattern

For reference entities (Country, Currency, Legal Entity):

  • Show code + name
  • Show key attributes (ISO codes, classifications)
  • Hide most other fields

Transactional Pattern

For transaction entities (Order, Invoice):

  • Show document number + date
  • Show party fields (customer, vendor)
  • Show amount/status
  • Hide line-level details

Standard CRM Entity Pattern

For OOB entities (Account, Contact, Product):

  • Use base CRM table as SourceTable (e.g., "CRM Product")
  • Follow same field visibility rules
  • Adapt entity variable names

See EXAMPLES.md for complete implementations of each pattern.

Troubleshooting

IssueSolution
Fields not foundVerify field names match table exactly (case-sensitive)
Page doesn't display dataCheck RefreshOnActivate = true and OnInit trigger present
CreateFromCDS action failsVerify CRM Integration Management available and CDS connection configured
Compilation errorsUpdate variable names to match entity (CDSCountry, CDSDepartment)

Output Confirmation

CDS list page generated successfully!

Page: [ID] "BCS CDS [EntityName]"
File: src/Page/BCSCDS[EntityName].Page.al
Caption: Dataverse [EntityName]
Source: "BCS CDS [tablename]"

Visible fields: [count]
Hidden fields: [count]

Components included:
✓ CreateFromCDS action
✓ OnInit trigger
✓ SetCurrentlyCoupled[Entity] procedure

Next steps:
- Build project (Ctrl+Shift+P → AL: Build)
- Test page opens from Tell Me search
- Verify data displays from Dataverse connection

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Bc Cds Page Generator AI skill do?

Automatically generate AL list page objects for CDS (Dataverse) tables with standard CRM integration patterns. Creates list pages with proper field layouts, CRM integration actions, coupling procedures, and initialization triggers. Use when user requests to create, generate, or build a list page for a CDS/Dataverse table, or mentions creating UI for Dataverse entities. Trigger phrases include "create page for CDS table", "generate list page for [entity]", "build Dataverse page", or when working with CDS integration tables that need user interfaces.

Why use Bc Cds Page Generator on TypingMind?

Because you install it once and use it with any model. Bc Cds Page Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Bc Cds Page Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fernandoartalf/AL-Copilot-Skills-Collection/tree/main/skills/bc-cds-page-generator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Bc Cds Page Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Bc Cds Page Generator?

As many as you like. As long as a model supports skills, you can use Bc Cds Page Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Bc Cds Page Generator AI skill free?

Yes. It is published on GitHub by fernandoartalf under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇