Hi all,
I'm currently developing a new extension and want to implement the permission sets correctly from the beginning.
After starting with "AL: Generate permission set containing current extension objects" there are two compiler warnings:
warning AL1026: An error occurred during XML validation: 'Invalid entitlements element'.
warning AL1026: An error occurred during XML validation: 'Invalid membership entitlements element'.
The package will be created successfully but does not include the permissions file. After changing the file a bit the warnings disappear.
<?xml version="1.0" encoding="utf-8"?>
<PermissionSets>
<PermissionSet RoleID="TEST" RoleName="TEST">
<Permission>
<ObjectType>Table Data</ObjectType>
<ObjectID>50000</ObjectID>
<ReadPermission>Yes</ReadPermission>
<InsertPermission>Indirect</InsertPermission>
<ModifyPermission>Yes</ModifyPermission>
</Permission>
</PermissionSet>
<Entitlements>
</Entitlements>
<MembershipEntitlements>
</MembershipEntitlements>
</PermissionSets>
Now I'm getting an error message on publishing the app from vs code: Object reference not set to an instance of an object
I've been looking for a solution for quite some time, but I haven't found anything. I hope someone out there could help me!
Thanks in advance!