You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
BC21 introduced the ability to include a permission set in a permission set, but these includes are not updated with the current "Convert to PermissionSet objects" function
Versions used
VSCode: 1.79.1
NAB AL Tools: 1.30
To Reproduce
Steps to reproduce the behavior:
Create a new permission set which includes a Tenant permission set from an app
Create a new version of the app without the permission set xml file but with a permission set object and an upgrade codeunit using the "Convert to PermissionSet objects"
Publish and install the new app
Look at the permission set created in step 1 - it still refers to the (now non-existing) tenant permission set.
Expected behavior
The permission set should be updated to include the new System permission set.
Screenshots
N/A
Additional context
The relation is stored in table 2000000253: Tenant Permission Set Rel.
I didn't have to change the permission set code, so I could simply fix it like this:
TenantPermissionSetRel.SetRange("Related App ID", _AppId);
TenantPermissionSetRel.SetRange("Related Scope", TenantPermissionSetRel."Related Scope"::Tenant);
TenantPermissionSetRel.SetRange("Related Role ID", _PermissionSetCode);
TenantPermissionSetRel.ModifyAll("Related Scope", TenantPermissionSetRel."Related Scope"::System);
Please notice that the Scope fields are not included in the PK so the update process is a bit different as your function both have to rename and modify. (or delete and insert)
Does it happen all the time?
We have only seen the issue at three customers so only a few companies seems to use this new functionality.
Did it used to work?
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
BC21 introduced the ability to include a permission set in a permission set, but these includes are not updated with the current "Convert to PermissionSet objects" function
Versions used
VSCode: 1.79.1
NAB AL Tools: 1.30
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The permission set should be updated to include the new System permission set.
Screenshots
N/A
Additional context
The relation is stored in table 2000000253: Tenant Permission Set Rel.
I didn't have to change the permission set code, so I could simply fix it like this:
TenantPermissionSetRel.SetRange("Related App ID", _AppId);
TenantPermissionSetRel.SetRange("Related Scope", TenantPermissionSetRel."Related Scope"::Tenant);
TenantPermissionSetRel.SetRange("Related Role ID", _PermissionSetCode);
TenantPermissionSetRel.ModifyAll("Related Scope", TenantPermissionSetRel."Related Scope"::System);
Please notice that the Scope fields are not included in the PK so the update process is a bit different as your function both have to rename and modify. (or delete and insert)
Does it happen all the time?
We have only seen the issue at three customers so only a few companies seems to use this new functionality.
Did it used to work?
N/A
The text was updated successfully, but these errors were encountered: