Skip to content

[27.2] Agent - Duplicate user name is generated if one of the agents is deleted#5683

Closed
nikolakukrika wants to merge 104 commits intomainfrom
bugs/615177-AgentsDuplicateNameFix-272
Closed

[27.2] Agent - Duplicate user name is generated if one of the agents is deleted#5683
nikolakukrika wants to merge 104 commits intomainfrom
bugs/615177-AgentsDuplicateNameFix-272

Conversation

@nikolakukrika
Copy link
Copy Markdown
Contributor

@nikolakukrika nikolakukrika commented Dec 2, 2025

###Summary
Duplicate user name is generated if one of the agents is deleted

Work Item(s)
Fixes AB#615177

aholstrup1 and others added 30 commits August 26, 2025 09:22
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Final integration from main to 27.x

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Related to
[AB#597864](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/597864)

---------

Co-authored-by: Quentin Tresontani <31541422+qutreson@users.noreply.github.com>
Co-authored-by: Onat Buyukakkus <55088871+onbuyuka@users.noreply.github.com>
Co-authored-by: business-central-bot[bot] <205154211+business-central-bot[bot]@users.noreply.github.com>
Co-authored-by: mazhelez <mazhelez@users.noreply.github.com>
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Increment version number to 27.1

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Related to
[AB#597872](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/597872)

---------

Co-authored-by: aholstrup1 <aholstrup1@users.noreply.github.com>
…ase/latest (#4552)

This PR contains the following changes:
- Update BCArtifact version. New value: 27.0.38571.0


[AB#539394](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/539394)

---------

Co-authored-by: mazhelez <mazhelez@users.noreply.github.com>
Co-authored-by: Alexander Holstrup <117829001+aholstrup1@users.noreply.github.com>
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Add CLEAN28 to AL-Go-Settings.json

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Related to
[AB#597870](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/597870)
…emplate using latest setup table (#4557)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Port from #4507

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#593746](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/593746)
#### Summary 
Adding support for selecting the language from the agent setup card

#### Work Item(s)
Fixes
[AB#596383](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/596383)
…861 (+ 1 more update(s)) (#4646)

This PR contains the following changes:
- Update app baselines package version. New value: 27.0.38460.38861
- Update translation package version. New value: 27.1.25245.2


[AB#539394](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/539394)

Co-authored-by: aholstrup1 <aholstrup1@users.noreply.github.com>
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->

Port from #4661

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#599346](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/599346)
…4669)

#### Summary

Add support to ignore attachments being processed by agent

#### Work Item(s) 


[AB#562490](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/562490)

Co-authored-by: Qasim Ikram <qaikram@microsoft.com>
When Subscription Billing app creates a new billing document it
validates the vendor number and posting date. Then the IRS forms app,
which is the US specific app, not related to subscription billing, run
an update of certain fields related to this app. This kind of update in
the IRS forms app from the other side triggers the Subscription billing
app code - the CreatePurchaseHeaderForVendorNo procedure. This procedure
throws the following error:
You cannot make this change because the document is linked to a
contract. If you still want to change the field, first delete this
document and then make the change to the contract.

This procedure has a list of fields for exclusion. It would be great to
add IRS forms app fields to the exclusion list, but that is not possible
unless i create a dependency between these two apps, which does not make
any sense.
The other approach which i eventually chose is to skip calling the
CreatePurchaseHeaderForVendorNo when i change the vendor number pr
posting date. To me it sounds much better as we keep the procedure
untouched, so we continue to call it whenever some user changes this
value in the document. But if we validate the posting date through the
code in the CreateBillingDocuments codeunit, we can skip this check.



[AB#599229](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/599229)
…233 (+ 1 more update(s)) (#4725)

This PR contains the following changes:
- Update app baselines package version. New value: 27.0.38460.39233
- Update translation package version. New value: 27.1.25252.1


[AB#539394](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/539394)

Co-authored-by: aholstrup1 <aholstrup1@users.noreply.github.com>
Fixes

[AB#571288](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/571288)

Co-authored-by: Vasil Iliev <vasililiev@users.noreply.github.com>
Co-authored-by: Vasil Iliev <vailiev@microsoft.com>
#### Summary
Allow attachments to be marked as ignored #

#### Work Item(s) 



[AB#562490](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/562490)

---------

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes #

Co-authored-by: Qasim Ikram <qaikram@microsoft.com>
…word since SecretTexts cannot be compared in Cloud - missing capability in 27 compared to 26! (#4751)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Backport of #4654

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#602446](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/602446)

Co-authored-by: bc4all <104026807+bc4all@users.noreply.github.com>
…526 (+ 1 more update(s)) (#4771)

This PR contains the following changes:
- Update app baselines package version. New value: 27.0.38460.39526
- Update translation package version. New value: 27.1.25259.3


[AB#539394](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/539394)

Co-authored-by: aholstrup1 <aholstrup1@users.noreply.github.com>
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
This is a backport of the PR:
#4467 from main (28.0) to 27.x

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes #4186

---------

Co-authored-by: Jesper Schulz-Wedde <JesperSchulz@users.noreply.github.com>
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
[27.x] Disable tests in Contract Renewal Test to unblock CI/CD 
https://github.com/microsoft/BCApps/actions/runs/17848137827

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#603826](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/603826)
…844 (+ 1 more update(s)) (#4840)

This PR contains the following changes:
- Update app baselines package version. New value: 27.0.38460.39844
- Update translation package version. New value: 27.1.25266.4


[AB#539394](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/539394)

Co-authored-by: aholstrup1 <aholstrup1@users.noreply.github.com>
…permis… (#4855)

"Add Related Fields" permission is not part of any user permission sets
, therefore uptake is cubersome since admins need to know about this
permission and assign it to the users.
The PM decision is to include "Add Related Fields" permission in Basic
permision set.

Fixes
[AB#604298](https://dynamicssmb2.visualstudio.com/Dynamics%20SMB/_workitems/edit/604298)
…rency to avoid fake "Processing" email block email sending (#4894)

This pull request backports #4820 to releases/27.x

Fixes
[AB#606062](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/606062)
…226 (+ 1 more update(s)) (#4924)

This PR contains the following changes:
- Update app baselines package version. New value: 27.0.38460.40226
- Update translation package version. New value: 27.1.25273.3


[AB#539394](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/539394)

Co-authored-by: aholstrup1 <aholstrup1@users.noreply.github.com>
Groenbech96 and others added 16 commits November 14, 2025 09:32
Disable VAT check in test, as it blocks CZ uptake of app.

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#611626](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/611626)

Co-authored-by: Magnus Hartvig Grønbech <magnushar@microsoft.com>
…AndFieldsNoByType *1 (#5385)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
This is a backport of PR: #5173  from main (28.0) to 27.x

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes #5172 

Fixes
[AB#613107](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/613107)
…onalInvoiceLine (#5480)

#### Summary
Make parameter `SalesLine` of event `OnAfterCreateAdditionalInvoiceLine`
useful by returing the newly created attached sales line.

Backport of #5380

#### Work Item(s)
Fixes #5304 
Fixes
[AB#613118](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/613118)
…312 (#5527)

This PR contains the following changes:
- Update app baselines package version. New value: 27.1.41698.42312


[AB#539394](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/539394)

Co-authored-by: aholstrup1 <aholstrup1@users.noreply.github.com>
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#610611](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/610611)

---------

Co-authored-by: wenjiefan <wenjiefan@microsoft.com>
… Agent Card permissions if permissions span multiple companies (#5586)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#603146](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/603146)

Backports of the following:

[Agent] Only show company in Agent Card permissions if permissions span
multiple companies (#4549)
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
To reduce the risk of potential misconfiguration of agents, do not show
the company when the agent has permissions in only one company. A toggle
is added to show the company if needed.

<img width="1754" height="221" alt="image"

src="https://github.com/user-attachments/assets/f1fe14c3-6b1e-4280-82e2-c43196413a10"
/>

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes

[AB#593056](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/593056)

---------

Co-authored-by: Quentin Tresontani <31541422+qutreson@users.noreply.github.com>
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guidelines below
* https://github.com/microsoft/BCApps/Contributing.md
-->
### Summary 
This pull request extends the System Application Translation module with
a new public API for programmatic retrieval of translation data,
addressing the requirements of partners and ISVs for custom translation
workflows and data integration scenarios.

**Current Gap:** The existing Translation module API lacks bulk
retrieval capabilities needed for:
- Adding translation to the custom tables and workflows
- Exporting translations for external processing

### Technical Approach
Introduces a read-only query API following established System
Application patterns, returning results via a temporary buffer table to
ensure no database impact and maintain performance standards.

### API Design

#### Public Procedure: `GetTranslations`

**Location:** `codeunit 3711 "Translation"` (System Application)

**Signature:**
```al
procedure GetTranslations(RecVariant: Variant; FieldId: Integer; var TranslationBuffer: Record "Translation Buffer"): Boolean
```

**Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| RecVariant | Variant | Source record (supports Record, RecordRef, or
RecordId) |
| FieldId | Integer | Field number to query (0 = all fields) |
| TranslationBuffer | Record "Translation Buffer" (var) | Output buffer
populated with results |

**Returns:** `Boolean` - True if translations found, False otherwise

**Design Rationale:**
- **Variant parameter** - Maintains consistency with existing
`Translation.Set()` and `Translation.Get()` APIs
- **Temporary buffer output** - Enables efficient batch processing
without database writes
- **Boolean return** - Provides explicit success/failure indication for
error handling
- **Zero FieldId convention** - Allows bulk retrieval across all
translated fields


#### Work Item(s)
Fixes #5434 

Fixes
[AB#613845](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/613845)

Co-authored-by: Divesh Bora <dbora@aptean.com>
…sales line for27.x (#5386)

<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes #5286 
Fixes
[AB#612606](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/612606)
…623 (+ 1 more update(s)) (#5603)

This PR contains the following changes:
- Update app baselines package version. New value: 27.1.41698.42623
- Update translation package version. New value: 27.2.25328.3


[AB#539394](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/539394)

Co-authored-by: aholstrup1 <aholstrup1@users.noreply.github.com>
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->
Allow agent admins to access the agent cards without requiring SUPER.

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#604144](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/604144)
#### Summary
Backporting Agent App changes to 27.x

#### Work Item(s) 
Fixes
[AB#614196](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/614196)

---------

Co-authored-by: Sotiris Dragonas <36576941+BazookaMusic@users.noreply.github.com>
Co-authored-by: Sotiris Dragonas <sodragon@microsoft.com>
Co-authored-by: Quentin Tresontani <31541422+qutreson@users.noreply.github.com>
@nikolakukrika nikolakukrika requested review from a team as code owners December 2, 2025 13:06
@github-actions github-actions bot added Build: Automation Workflows and other setup in .github folder AL: System Application Build: scripts & configs Build scripts and configuration files AL: Tools AL: Business Foundation AL: Apps (W1) Add-on apps for W1 labels Dec 2, 2025
@github-actions github-actions bot added this to the Version 28.0 milestone Dec 2, 2025
@nikolakukrika nikolakukrika deleted the bugs/615177-AgentsDuplicateNameFix-272 branch December 2, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 AL: Business Foundation AL: System Application AL: Tools Build: Automation Workflows and other setup in .github folder Build: scripts & configs Build scripts and configuration files

Projects

None yet

Development

Successfully merging this pull request may close these issues.