Skip to content

workflow-library-registration - #289

Open
Fer (fernandoartalf) wants to merge 2 commits into
microsoft:mainfrom
fernandoartalf:knowledge/workflow-library-registration
Open

Fer (fernandoartalf) wants to merge 2 commits into
microsoft:mainfrom
fernandoartalf:knowledge/workflow-library-registration

Conversation

@fernandoartalf

Copy link
Copy Markdown

Adds knowledge about registering custom workflow events, responses, and table relations through their library extension points. Entries registered only during installation can disappear when Business Central rebuilds the libraries during an upgrade.

The guidance distinguishes this defect from valid custom events and reuse of standard responses. It applies to all BC versions, with the evaluation fixture targeting BC 29.

Changes
Adds an article and good/bad AL examples.
Adds the examples to the events review evaluation.
Validation
Frontmatter, review contracts, and fixture coverage passed.
Knowledge and skill index checks passed.
Fixture-context and changed-path regression checks passed.

@fernandoartalf

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On BC28, AddResponseToLibrary returns immediately when the standard response already exists, so OnAddWorkflowResponsePredecessorsToLibrary is not raised for it. In an existing company, this example can add the custom event without pairing it with Create Approval Requests, leaving that response unavailable for the event.

Please make the example work across the article's all-version scope, for example by registering the combination from OnAddWorkflowResponsesToLibrary, or document the BC29-only behavior and a version-safe alternative for earlier releases. Reusing the standard response is valid; a new custom response is not needed.

@fernandoartalf

Copy link
Copy Markdown
Author

On BC28, AddResponseToLibrary returns immediately when the standard response already exists, so OnAddWorkflowResponsePredecessorsToLibrary is not raised for it. In an existing company, this example can add the custom event without pairing it with Create Approval Requests, leaving that response unavailable for the event.

Please make the example work across the article's all-version scope, for example by registering the combination from OnAddWorkflowResponsesToLibrary, or document the BC29-only behavior and a version-safe alternative for earlier releases. Reusing the standard response is valid; a new custom response is not needed.

Thank you for the feedback Jesper, I have performed a fix based on It, you should be able to review It on this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants